Redux #60

Merged
LucidKobold merged 10 commits from redux into main 2022-06-14 19:01:11 -04:00
14 changed files with 471 additions and 322 deletions
Showing only changes of commit 8654d7ac79 - Show all commits

View File

@@ -29,11 +29,6 @@ interface Month {
week6: MonthDay[]; week6: MonthDay[];
} }
interface MonthInfo {
date: Date;
title: string;
}
interface WeekLayout { interface WeekLayout {
weekdays: DaysOfWeek; weekdays: DaysOfWeek;
month: Month; month: Month;
@@ -44,21 +39,8 @@ interface MonthLayout {
monday: WeekLayout; monday: WeekLayout;
} }
interface MonthContext extends MonthInfo {
layout: MonthLayout;
}
interface UpdateCalendarProps { interface UpdateCalendarProps {
year: number; year: number;
month: number; month: number;
day: number; day: number;
} }
interface CalenderContextState {
currDate: Date;
setCurrDate: React.Dispatch<React.SetStateAction<Date>>;
selectedDate: Date;
title: string;
layout: MonthLayout;
updateDate: (input: UpdateCalendarProps) => void;
}