From 56c12012fe1f507bc4ce320b8772a63f3b4369be Mon Sep 17 00:00:00 2001 From: Tom Hacohen Date: Thu, 22 Feb 2018 20:26:36 +0000 Subject: [PATCH] Types: update react-big-calendar types. --- package.json | 2 +- src/components/Calendar.tsx | 2 +- yarn.lock | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index d4e6770..cb5bb84 100644 --- a/package.json +++ b/package.json @@ -42,7 +42,7 @@ "@types/node": "^8.0.53", "@types/node-rsa": "^0.4.1", "@types/react": "^16.0.25", - "@types/react-big-calendar": "^0.15.0", + "@types/react-big-calendar": "^0.18.0", "@types/react-dom": "^16.0.3", "@types/react-redux": "^5.0.14", "@types/react-router": "^4.0.19", diff --git a/src/components/Calendar.tsx b/src/components/Calendar.tsx index 18243af..af43899 100644 --- a/src/components/Calendar.tsx +++ b/src/components/Calendar.tsx @@ -61,7 +61,7 @@ class Calendar extends React.PureComponent { selectable={true} onSelectEvent={this.props.onItemClick as any} onSelectSlot={this.slotClicked as any} - formats={{agendaHeaderFormat: agendaHeaderFormat}} + formats={{agendaHeaderFormat: agendaHeaderFormat as any}} eventPropGetter={eventPropGetter} date={this.state.currentDate} onNavigate={this.onNavigate} diff --git a/yarn.lock b/yarn.lock index 46fa1c6..36f067f 100644 --- a/yarn.lock +++ b/yarn.lock @@ -41,9 +41,9 @@ dependencies: "@types/react" "*" -"@types/react-big-calendar@^0.15.0": - version "0.15.0" - resolved "https://registry.yarnpkg.com/@types/react-big-calendar/-/react-big-calendar-0.15.0.tgz#3359ec60840ef8f51f506e1bb45c1eab0d337f01" +"@types/react-big-calendar@^0.18.0": + version "0.18.0" + resolved "https://registry.yarnpkg.com/@types/react-big-calendar/-/react-big-calendar-0.18.0.tgz#e86e6c06dd6aa2891873f41a8aea0afdca33a9de" dependencies: "@types/react" "*"