Redux #60
18
types/CalenderContext.d.ts
vendored
18
types/CalenderContext.d.ts
vendored
@@ -29,11 +29,6 @@ interface Month {
|
||||
week6: MonthDay[];
|
||||
}
|
||||
|
||||
interface MonthInfo {
|
||||
date: Date;
|
||||
title: string;
|
||||
}
|
||||
|
||||
interface WeekLayout {
|
||||
weekdays: DaysOfWeek;
|
||||
month: Month;
|
||||
@@ -44,21 +39,8 @@ interface MonthLayout {
|
||||
monday: WeekLayout;
|
||||
}
|
||||
|
||||
interface MonthContext extends MonthInfo {
|
||||
layout: MonthLayout;
|
||||
}
|
||||
|
||||
interface UpdateCalendarProps {
|
||||
year: number;
|
||||
month: number;
|
||||
day: number;
|
||||
}
|
||||
|
||||
interface CalenderContextState {
|
||||
currDate: Date;
|
||||
setCurrDate: React.Dispatch<React.SetStateAction<Date>>;
|
||||
selectedDate: Date;
|
||||
title: string;
|
||||
layout: MonthLayout;
|
||||
updateDate: (input: UpdateCalendarProps) => void;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user