Stickers now updating in local state, the context state is not.
This commit is contained in:
15
types/CalenderContext.d.ts
vendored
15
types/CalenderContext.d.ts
vendored
@@ -34,15 +34,14 @@ interface MonthInfo {
|
||||
title: string;
|
||||
}
|
||||
|
||||
interface WeekLayout {
|
||||
weekdays: DaysOfWeek;
|
||||
month: Month;
|
||||
}
|
||||
|
||||
interface MonthLayout {
|
||||
sunday: {
|
||||
weekdays: DaysOfWeek;
|
||||
month: Month;
|
||||
};
|
||||
monday: {
|
||||
weekdays: DaysOfWeek;
|
||||
month: Month;
|
||||
};
|
||||
sunday: WeekLayout;
|
||||
monday: WeekLayout;
|
||||
}
|
||||
|
||||
interface MonthContext extends MonthInfo {
|
||||
|
||||
2
types/StickerContext.d.ts
vendored
2
types/StickerContext.d.ts
vendored
@@ -1,6 +1,6 @@
|
||||
interface StickersContextState {
|
||||
stickersMonth: StickerDays;
|
||||
addEditSticker: (date: Date, sticker: ValidStickerVal) => void;
|
||||
addEditSticker: (date: Date, sticker: ValidStickerVal) => Sticker;
|
||||
}
|
||||
|
||||
type StickerVal = -2 | -1 | 0 | 1 | 2 | null;
|
||||
|
||||
Reference in New Issue
Block a user