mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-06 15:57:13 +00:00
Merge pull request #32974 from ldthorne/master
[react-big-calendar] Replace unused prop with correct prop and type
This commit is contained in:
Vendored
+2
-1
@@ -6,6 +6,7 @@
|
||||
// Sebastian Silbermann <https://github.com/eps1lon>
|
||||
// Paul Potsides <https://github.com/strongpauly>
|
||||
// janb87 <https://github.com/janb87>
|
||||
// Daniel Thorne <https://github.com/ldthorne>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.8
|
||||
import { Validator } from 'prop-types';
|
||||
@@ -220,7 +221,7 @@ export interface BigCalendarProps<TEvent extends Event = Event, TResource extend
|
||||
localizer: DateLocalizer;
|
||||
|
||||
date?: stringOrDate;
|
||||
now?: Date;
|
||||
getNow?: () => Date;
|
||||
view?: View;
|
||||
events?: TEvent[];
|
||||
onNavigate?: (newDate: Date, view: View, action: Navigate) => void;
|
||||
|
||||
@@ -70,6 +70,7 @@ class CalendarResource {
|
||||
return (
|
||||
<MyCalendar {...this.props}
|
||||
date={new Date()}
|
||||
getNow={() => new Date()}
|
||||
view={'day'}
|
||||
events={getEvents()}
|
||||
onNavigate={(newDate: Date, view: View, action: Navigate) => { }}
|
||||
|
||||
Reference in New Issue
Block a user