mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-12 21:10:23 +00:00
fix onNavigate function
This commit is contained in:
Vendored
+1
-1
@@ -178,7 +178,7 @@ export interface BigCalendarProps<TEvent extends Event = Event, TResource extend
|
||||
now?: Date;
|
||||
view?: View;
|
||||
events?: TEvent[];
|
||||
onNavigate?: (newDate: Date, action: Navigate) => void;
|
||||
onNavigate?: (newDate: Date, view: View, action: Navigate) => void;
|
||||
onView?: (view: View) => void;
|
||||
onDrillDown?: (date: Date, view: View) => void;
|
||||
onSelectSlot?: (slotInfo: { start: stringOrDate, end: stringOrDate, slots: Date[] | string[], action: 'select' | 'click' | 'doubleClick' }) => void;
|
||||
|
||||
@@ -71,7 +71,7 @@ class CalendarResource {
|
||||
date={new Date()}
|
||||
view={'day'}
|
||||
events={getEvents()}
|
||||
onNavigate={(newDate: Date, action: Navigate) => { }}
|
||||
onNavigate={(newDate: Date, view: View, action: Navigate) => { }}
|
||||
onView={(view: View) => { }}
|
||||
onSelectSlot={(slotInfo) => {
|
||||
const start = slotInfo.start;
|
||||
|
||||
Reference in New Issue
Block a user