diff --git a/examples/demos/basic.js b/examples/demos/basic.js index 3dbd1d324..d0b4e7445 100644 --- a/examples/demos/basic.js +++ b/examples/demos/basic.js @@ -1,7 +1,7 @@ import React from 'react' import { Calendar, Views } from 'react-big-calendar' import events from '../events' -import dates from '../../src/utils/dates' +import * as dates from '../../src/utils/dates' let allViews = Object.keys(Views).map(k => Views[k]) diff --git a/examples/demos/customView.js b/examples/demos/customView.js index ebd5d3997..6aa7468d7 100644 --- a/examples/demos/customView.js +++ b/examples/demos/customView.js @@ -1,6 +1,6 @@ import React from 'react' -import dates from 'date-arithmetic' +import * as dates from 'date-arithmetic' import events from '../events' import { Calendar, Views, Navigate } from 'react-big-calendar' import TimeGrid from 'react-big-calendar/lib/TimeGrid'