Skip to content

Commit 23c955f

Browse files
committed
Update DatepickerStore
1 parent b1b0afe commit 23c955f

File tree

2 files changed

+3
-9
lines changed

2 files changed

+3
-9
lines changed

react-tailwindcss-datepicker

Lines changed: 0 additions & 1 deletion
This file was deleted.

src/contexts/DatepickerContext.ts

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -57,10 +57,11 @@ const DatepickerContext = createContext<DatepickerStore>({
5757
configs: undefined,
5858
calendarContainer: null,
5959
arrowContainer: null,
60-
hideDatepicker: () => null,
6160
period: { start: null, end: null },
6261
// eslint-disable-next-line @typescript-eslint/no-empty-function,@typescript-eslint/no-unused-vars
6362
changePeriod: period => {},
63+
// eslint-disable-next-line @typescript-eslint/no-empty-function
64+
hideDatepicker: () => {},
6465
dayHover: null,
6566
// eslint-disable-next-line @typescript-eslint/no-empty-function,@typescript-eslint/no-unused-vars
6667
changeDayHover: (day: string | null) => {},
@@ -70,13 +71,7 @@ const DatepickerContext = createContext<DatepickerStore>({
7071
// eslint-disable-next-line @typescript-eslint/no-empty-function,@typescript-eslint/no-unused-vars
7172
updateFirstDate: date => {},
7273
// eslint-disable-next-line @typescript-eslint/no-empty-function,@typescript-eslint/no-unused-vars
73-
changeDatepickerValue: (
74-
// eslint-disable-next-line @typescript-eslint/no-empty-function,@typescript-eslint/no-unused-vars
75-
value: DateValueType,
76-
// eslint-disable-next-line @typescript-eslint/no-empty-function,@typescript-eslint/no-unused-vars
77-
e: HTMLInputElement | null | undefined
78-
// eslint-disable-next-line @typescript-eslint/no-empty-function,@typescript-eslint/no-unused-vars
79-
) => {},
74+
changeDatepickerValue: (value: DateValueType, e: HTMLInputElement | null | undefined) => {},
8075
showFooter: false,
8176
value: null,
8277
i18n: LANGUAGE,

0 commit comments

Comments
 (0)