Calendar: scroll to 8am when opening week and day views.

Fixes #40.
master
Tom Hacohen 6 years ago
parent 4b09b9832a
commit 49273fbc6f

@ -74,6 +74,7 @@ class Calendar extends React.PureComponent<PropsType> {
<div style={{width: '100%', height: 'calc(100vh - 230px)', minHeight: 500}}> <div style={{width: '100%', height: 'calc(100vh - 230px)', minHeight: 500}}>
<BigCalendar <BigCalendar
defaultDate={new Date()} defaultDate={new Date()}
scrollToTime={new Date(1970, 1, 1, 8)}
localizer={calendarLocalizer} localizer={calendarLocalizer}
events={entries} events={entries}
selectable selectable

Loading…
Cancel
Save