From e704e176ffba1c303c77c9e03bf8b814f83f1307 Mon Sep 17 00:00:00 2001 From: Bogdan Chadkin Date: Mon, 10 Jun 2019 15:55:52 +0300 Subject: [PATCH] fix: bad propType. (#1351) `Element` does not exist in react. But it exists in prop-types. --- .size-snapshot.json | 12 ++++++------ src/Popup.js | 4 ++-- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.size-snapshot.json b/.size-snapshot.json index 0a543a552..fddefc812 100644 --- a/.size-snapshot.json +++ b/.size-snapshot.json @@ -1,8 +1,8 @@ { "./dist/react-big-calendar.js": { - "bundled": 554005, - "minified": 170219, - "gzipped": 50027 + "bundled": 553987, + "minified": 170205, + "gzipped": 50025 }, "./dist/react-big-calendar.min.js": { "bundled": 490228, @@ -10,9 +10,9 @@ "gzipped": 45487 }, "dist/react-big-calendar.esm.js": { - "bundled": 169733, - "minified": 81582, - "gzipped": 20080, + "bundled": 169712, + "minified": 81562, + "gzipped": 20075, "treeshaked": { "rollup": { "code": 62970, diff --git a/src/Popup.js b/src/Popup.js index 56d2479f1..e5484278b 100644 --- a/src/Popup.js +++ b/src/Popup.js @@ -1,5 +1,5 @@ import PropTypes from 'prop-types' -import React, { Element } from 'react' +import React from 'react' import getOffset from 'dom-helpers/query/offset' import getScrollTop from 'dom-helpers/query/scrollTop' import getScrollLeft from 'dom-helpers/query/scrollLeft' @@ -101,7 +101,7 @@ Popup.propTypes = { slotEnd: PropTypes.number, popperRef: PropTypes.oneOfType([ PropTypes.func, - PropTypes.shape({ current: PropTypes.instanceOf(Element) }), + PropTypes.shape({ current: PropTypes.Element }), ]), }