react-grid-system
Advanced tools
Comparing version 3.2.1 to 3.2.2
@@ -64,3 +64,6 @@ 'use strict'; | ||
} | ||
console.info('Please use the render prop of ScreenClassRender. Using style and children is deprecated and will be removed in the next major release.'); | ||
if (!_this.warned) { | ||
console.warn('Please use the render prop of ScreenClassRender. Using style and children is deprecated and will be removed in the next major release.'); | ||
_this.warned = true; | ||
} | ||
if (_this.props.style) { | ||
@@ -67,0 +70,0 @@ return _react2.default.cloneElement(_this.props.children, { style: _this.getStyle() }); |
{ | ||
"name": "react-grid-system", | ||
"version": "3.2.1", | ||
"version": "3.2.2", | ||
"description": "A no CSS Bootstrap-like responsive grid system for React.", | ||
@@ -5,0 +5,0 @@ "main": "./build/index.js", |
@@ -57,2 +57,4 @@ /* global window */ | ||
warned: false; | ||
render = () => { | ||
@@ -62,3 +64,6 @@ if (this.props.render) { | ||
} | ||
console.info('Please use the render prop of ScreenClassRender. Using style and children is deprecated and will be removed in the next major release.'); | ||
if (!this.warned) { | ||
console.warn('Please use the render prop of ScreenClassRender. Using style and children is deprecated and will be removed in the next major release.'); | ||
this.warned = true; | ||
} | ||
if (this.props.style) { | ||
@@ -65,0 +70,0 @@ return React.cloneElement(this.props.children, { style: this.getStyle() }); |
73139
1637