@@ -114,16 +114,15 @@ Placeholder.displayName = 'SizeMePlaceholder';
114
114
Placeholder . propTypes = {
115
115
className : _propTypes2 . default . string ,
116
116
style : _propTypes2 . default . object
117
- } ;
118
117
119
- /**
120
- * As we need to maintain a ref on the root node that is rendered within our
121
- * SizeMe component we need to wrap our entire render in a sub component.
122
- * Without this, we lose the DOM ref after the placeholder is removed from
123
- * the render and the actual component is rendered.
124
- * It took me forever to figure this out, so tread extra careful on this one!
125
- */
126
- var renderWrapper = function renderWrapper ( WrappedComponent ) {
118
+ /**
119
+ * As we need to maintain a ref on the root node that is rendered within our
120
+ * SizeMe component we need to wrap our entire render in a sub component.
121
+ * Without this, we lose the DOM ref after the placeholder is removed from
122
+ * the render and the actual component is rendered.
123
+ * It took me forever to figure this out, so tread extra careful on this one!
124
+ */
125
+ } ; var renderWrapper = function renderWrapper ( WrappedComponent ) {
127
126
function SizeMeRenderer ( props ) {
128
127
var explicitRef = props . explicitRef ,
129
128
className = props . className ,
@@ -163,7 +162,8 @@ var renderWrapper = function renderWrapper(WrappedComponent) {
163
162
style : _propTypes2 . default . object , // eslint-disable-line react/forbid-prop-types
164
163
size : _propTypes2 . default . shape ( {
165
164
width : _propTypes2 . default . number , // eslint-disable-line react/no-unused-prop-types
166
- height : _propTypes2 . default . number } ) ,
165
+ height : _propTypes2 . default . number // eslint-disable-line react/no-unused-prop-types
166
+ } ) ,
167
167
disablePlaceholder : _propTypes2 . default . bool
168
168
} ;
169
169
0 commit comments