4488 connect calendar tab to backend (#4624)
* create states and hooks * implement fetch more records * add empty state * update types * fix error * add fetchmoreloader and add scroll to container * fix visibility in calendarEventFragment * fix fetchMoreRecords * update TIMELINE_CALENDAR_EVENTS_DEFAULT_PAGE_SIZE * add test * modify empty state subtitle * replace entity by activityTargetableObject * create useCustomResolver hook * refactor * refactoring * use generic component * rename FetchMoreLoader * remove deprecated states and hooks * fix typing * update typing * update error message * renaming * improve typing * fix bug on contact creation from same company
This commit is contained in:
@ -1,14 +1,14 @@
|
||||
import { createContext } from 'react';
|
||||
|
||||
import { CalendarEvent } from '@/activities/calendar/types/CalendarEvent';
|
||||
import { TimelineCalendarEvent } from '~/generated-metadata/graphql';
|
||||
|
||||
type CalendarContextValue = {
|
||||
calendarEventsByDayTime: Record<number, CalendarEvent[] | undefined>;
|
||||
currentCalendarEvent?: CalendarEvent;
|
||||
calendarEventsByDayTime: Record<number, TimelineCalendarEvent[] | undefined>;
|
||||
currentCalendarEvent?: TimelineCalendarEvent;
|
||||
displayCurrentEventCursor?: boolean;
|
||||
getNextCalendarEvent: (
|
||||
calendarEvent: CalendarEvent,
|
||||
) => CalendarEvent | undefined;
|
||||
calendarEvent: TimelineCalendarEvent,
|
||||
) => TimelineCalendarEvent | undefined;
|
||||
updateCurrentCalendarEvent: () => void;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user