Attempting to fix and issue with the currDay highlight. Made a currDate in thecontext state rather than using new Date() accross the app.
This commit is contained in:
1
types/CalenderContext.d.ts
vendored
1
types/CalenderContext.d.ts
vendored
@@ -55,6 +55,7 @@ interface UpdateCalendarProps {
|
||||
}
|
||||
|
||||
interface CalenderContextState {
|
||||
currDate: Date;
|
||||
selectedDate: Date;
|
||||
title: string;
|
||||
layout: MonthLayout;
|
||||
|
||||
Reference in New Issue
Block a user