@@ -3,6 +3,7 @@ import { useForm } from "react-hook-form";
33
44import type { Dayjs } from "@calcom/dayjs" ;
55import dayjs from "@calcom/dayjs" ;
6+ import { BookerStoreProvider } from "@calcom/features/bookings/Booker/BookerStoreProvider" ;
67import { Dialog } from "@calcom/features/components/controlled-dialog" ;
78import { yyyymmdd } from "@calcom/lib/dayjs" ;
89import { useLocale } from "@calcom/lib/hooks/useLocale" ;
@@ -136,19 +137,21 @@ const DateOverrideForm = ({
136137 className = "p-6 sm:flex sm:p-0 xl:flex-row" >
137138 < div className = "sm:border-subtle w-full sm:border-r sm:p-4 sm:pr-6 md:p-8" >
138139 < DialogHeader title = { t ( "date_overrides_dialog_title" ) } />
139- < DatePicker
140- excludedDates = { excludedDates }
141- weekStart = { weekStart }
142- selected = { selectedDates }
143- onChange = { ( day ) => {
144- if ( day ) onDateChange ( day ) ;
145- } }
146- onMonthChange = { ( newMonth ) => {
147- setBrowsingDate ( newMonth ) ;
148- } }
149- browsingDate = { browsingDate }
150- locale = { isLocaleReady ? i18n . language : "en" }
151- />
140+ < BookerStoreProvider >
141+ < DatePicker
142+ excludedDates = { excludedDates }
143+ weekStart = { weekStart }
144+ selected = { selectedDates }
145+ onChange = { ( day ) => {
146+ if ( day ) onDateChange ( day ) ;
147+ } }
148+ onMonthChange = { ( newMonth ) => {
149+ setBrowsingDate ( newMonth ) ;
150+ } }
151+ browsingDate = { browsingDate }
152+ locale = { isLocaleReady ? i18n . language : "en" }
153+ />
154+ </ BookerStoreProvider >
152155 </ div >
153156 < div className = "relative mt-8 flex w-full flex-col sm:mt-0 sm:p-4 md:p-8" >
154157 { selectedDates [ 0 ] ? (
0 commit comments