Merge pull request #32974 from ldthorne/master

[react-big-calendar] Replace unused prop with correct prop and type
This commit is contained in:
Mine Starks
2019-02-12 11:38:59 -08:00
committed by GitHub
2 changed files with 3 additions and 1 deletions
+2 -1
View File
@@ -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) => { }}