11/* eslint-disable react/no-multi-comp */
2+ /* eslint-disable react/prop-types */
23/* eslint-disable react/require-default-props */
34/* eslint-disable react/no-find-dom-node */
45
56import React , { Children , Component } from 'react'
6- import PropTypes from 'prop-types'
77import ReactDOM from 'react-dom'
88import invariant from 'invariant'
99import { debounce , throttle } from 'throttle-debounce'
@@ -38,7 +38,6 @@ class ReferenceWrapper extends Component {
3838 return Children . only ( this . props . children )
3939 }
4040}
41- ReferenceWrapper . propTypes = { children : PropTypes . element . isRequired }
4241
4342function Placeholder ( { className, style } ) {
4443 // Lets create the props for the temp element.
@@ -60,10 +59,6 @@ function Placeholder({ className, style }) {
6059 return < div { ...phProps } />
6160}
6261Placeholder . displayName = 'SizeMePlaceholder'
63- Placeholder . propTypes = {
64- className : PropTypes . string ,
65- style : PropTypes . object ,
66- }
6762
6863/**
6964 * As we need to maintain a ref on the root node that is rendered within our
@@ -112,19 +107,6 @@ const renderWrapper = WrappedComponent => {
112107 WrappedComponent ,
113108 ) } )`
114109
115- SizeMeRenderer . propTypes = {
116- explicitRef : PropTypes . func . isRequired ,
117- className : PropTypes . string ,
118- style : PropTypes . object , // eslint-disable-line react/forbid-prop-types
119- size : PropTypes . shape ( {
120- width : PropTypes . number , // eslint-disable-line react/no-unused-prop-types
121- height : PropTypes . number , // eslint-disable-line react/no-unused-prop-types
122- position : PropTypes . object ,
123- } ) ,
124- disablePlaceholder : PropTypes . bool ,
125- onSize : PropTypes . func ,
126- }
127-
128110 return SizeMeRenderer
129111}
130112
@@ -178,10 +160,6 @@ function withSize(config = defaultConfig) {
178160 class SizeAwareComponent extends React . Component {
179161 static displayName = `SizeMe(${ getDisplayName ( WrappedComponent ) } )`
180162
181- static propTypes = {
182- onSize : PropTypes . func ,
183- }
184-
185163 domEl = null
186164
187165 state = {
0 commit comments