Skip to content

Commit

Permalink
fix: bad propType. (#1351)
Browse files Browse the repository at this point in the history
`Element` does not exist in react. But it exists in prop-types.
  • Loading branch information
TrySound authored and jquense committed Jun 10, 2019
1 parent fb0fe5e commit e704e17
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
12 changes: 6 additions & 6 deletions .size-snapshot.json
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
{
"./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,
"minified": 150810,
"gzipped": 45487
},
"dist/react-big-calendar.esm.js": {
"bundled": 169733,
"minified": 81582,
"gzipped": 20080,
"bundled": 169712,
"minified": 81562,
"gzipped": 20075,
"treeshaked": {
"rollup": {
"code": 62970,
Expand Down
4 changes: 2 additions & 2 deletions src/Popup.js
Original file line number Diff line number Diff line change
@@ -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'
Expand Down Expand Up @@ -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 }),
]),
}

Expand Down

0 comments on commit e704e17

Please sign in to comment.