Skip to content

Commit

Permalink
Update DatepickerStore
Browse files Browse the repository at this point in the history
  • Loading branch information
onesine committed May 17, 2023
1 parent b1b0afe commit 23c955f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
1 change: 0 additions & 1 deletion react-tailwindcss-datepicker
Submodule react-tailwindcss-datepicker deleted from 21e1da
11 changes: 3 additions & 8 deletions src/contexts/DatepickerContext.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,11 @@ const DatepickerContext = createContext<DatepickerStore>({
configs: undefined,
calendarContainer: null,
arrowContainer: null,
hideDatepicker: () => null,
period: { start: null, end: null },
// eslint-disable-next-line @typescript-eslint/no-empty-function,@typescript-eslint/no-unused-vars
changePeriod: period => {},
// eslint-disable-next-line @typescript-eslint/no-empty-function
hideDatepicker: () => {},
dayHover: null,
// eslint-disable-next-line @typescript-eslint/no-empty-function,@typescript-eslint/no-unused-vars
changeDayHover: (day: string | null) => {},
Expand All @@ -70,13 +71,7 @@ const DatepickerContext = createContext<DatepickerStore>({
// eslint-disable-next-line @typescript-eslint/no-empty-function,@typescript-eslint/no-unused-vars
updateFirstDate: date => {},
// eslint-disable-next-line @typescript-eslint/no-empty-function,@typescript-eslint/no-unused-vars
changeDatepickerValue: (
// eslint-disable-next-line @typescript-eslint/no-empty-function,@typescript-eslint/no-unused-vars
value: DateValueType,
// eslint-disable-next-line @typescript-eslint/no-empty-function,@typescript-eslint/no-unused-vars
e: HTMLInputElement | null | undefined
// eslint-disable-next-line @typescript-eslint/no-empty-function,@typescript-eslint/no-unused-vars
) => {},
changeDatepickerValue: (value: DateValueType, e: HTMLInputElement | null | undefined) => {},
showFooter: false,
value: null,
i18n: LANGUAGE,
Expand Down

0 comments on commit 23c955f

Please sign in to comment.