From 08c24942e5aa0a7414c987ba1bcf10559f30b98a Mon Sep 17 00:00:00 2001 From: Ben Lee <36443100+prizef@users.noreply.github.com> Date: Fri, 2 Nov 2018 19:07:26 -0700 Subject: [PATCH] fix: proptype warnings (#1084) --- src/EventCell.js | 2 +- src/Popup.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/EventCell.js b/src/EventCell.js index 200d08d68..1ea0b7589 100644 --- a/src/EventCell.js +++ b/src/EventCell.js @@ -16,7 +16,7 @@ let propTypes = { accessors: PropTypes.object.isRequired, components: PropTypes.object.isRequired, getters: PropTypes.object.isRequired, - localizer: PropTypes.object.isRequired, + localizer: PropTypes.object, onSelect: PropTypes.func, onDoubleClick: PropTypes.func, diff --git a/src/Popup.js b/src/Popup.js index af3b9a45c..b3f3979b6 100644 --- a/src/Popup.js +++ b/src/Popup.js @@ -26,7 +26,7 @@ const propTypes = { localizer: PropTypes.object.isRequired, onSelect: PropTypes.func, onDoubleClick: PropTypes.func, - slotStart: PropTypes.number, + slotStart: PropTypes.instanceOf(Date), slotEnd: PropTypes.number, }