IO-2932-Scheduling-Lag-on-AIO:
Bump React-Big-Calendar Signed-off-by: Dave Richer <dave@imexsystems.ca>
This commit is contained in:
@@ -75,6 +75,14 @@ export const ScheduleCalendarWrapperComponent = React.memo(function ScheduleCale
|
|||||||
[data, refetch]
|
[data, refetch]
|
||||||
);
|
);
|
||||||
|
|
||||||
|
const calendarComponents = useMemo(
|
||||||
|
() => ({
|
||||||
|
event: eventComponent,
|
||||||
|
header: headerComponent
|
||||||
|
}),
|
||||||
|
[eventComponent, headerComponent]
|
||||||
|
);
|
||||||
|
|
||||||
const onNavigate = useCallback(
|
const onNavigate = useCallback(
|
||||||
(date, view, action) => {
|
(date, view, action) => {
|
||||||
const newSearch = { ...search, date: date.toISOString().substr(0, 10) };
|
const newSearch = { ...search, date: date.toISOString().substr(0, 10) };
|
||||||
@@ -167,10 +175,7 @@ export const ScheduleCalendarWrapperComponent = React.memo(function ScheduleCale
|
|||||||
min={minTime}
|
min={minTime}
|
||||||
max={maxTime}
|
max={maxTime}
|
||||||
eventPropGetter={handleEventPropStyles}
|
eventPropGetter={handleEventPropStyles}
|
||||||
components={{
|
components={calendarComponents}
|
||||||
event: eventComponent,
|
|
||||||
header: headerComponent
|
|
||||||
}}
|
|
||||||
{...otherProps}
|
{...otherProps}
|
||||||
/>
|
/>
|
||||||
</>
|
</>
|
||||||
|
|||||||
Reference in New Issue
Block a user