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]
|
||||
);
|
||||
|
||||
const calendarComponents = useMemo(
|
||||
() => ({
|
||||
event: eventComponent,
|
||||
header: headerComponent
|
||||
}),
|
||||
[eventComponent, headerComponent]
|
||||
);
|
||||
|
||||
const onNavigate = useCallback(
|
||||
(date, view, action) => {
|
||||
const newSearch = { ...search, date: date.toISOString().substr(0, 10) };
|
||||
@@ -167,10 +175,7 @@ export const ScheduleCalendarWrapperComponent = React.memo(function ScheduleCale
|
||||
min={minTime}
|
||||
max={maxTime}
|
||||
eventPropGetter={handleEventPropStyles}
|
||||
components={{
|
||||
event: eventComponent,
|
||||
header: headerComponent
|
||||
}}
|
||||
components={calendarComponents}
|
||||
{...otherProps}
|
||||
/>
|
||||
</>
|
||||
|
||||
Reference in New Issue
Block a user