Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
"in": this.state.showLoading,
mountOnEnter: true,
unmountOnExit: true,
appear: true,
classNames: this.props.loadingClassNames,
timeout: this.props.loadingTimeout
}, loadingComponent));
}
}]);
return PageTransition;
}(_react.default.Component);
PageTransition.propTypes = {
children: _propTypes.default.node.isRequired,
timeout: _PropTypes.timeoutsShape,
classNames: _propTypes.default.string.isRequired,
loadingComponent: _propTypes.default.element,
loadingDelay: _propTypes.default.number,
/* eslint-disable react/require-default-props */
loadingTimeout: function loadingTimeout(props) {
var pt = _PropTypes.timeoutsShape;
if (props.loadingComponent) pt = pt.isRequired;
for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
args[_key - 1] = arguments[_key];
}
return pt.apply(void 0, [props].concat(args));
},
loadingClassNames: function loadingClassNames(props) {
loadingTimeout: function loadingTimeout(props) {
var pt = _PropTypes.timeoutsShape;
if (props.loadingComponent) pt = pt.isRequired;
for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
args[_key - 1] = arguments[_key];
}
return pt.apply(void 0, [props].concat(args));
},
loadingClassNames: function loadingClassNames(props) {
loadingTimeout: function loadingTimeout(props) {
var pt = _PropTypes.timeoutsShape;
if (props.loadingComponent) {
pt = pt.isRequired;
}
for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
args[_key - 1] = arguments[_key];
}
return pt.apply(void 0, [props].concat(args));
},
loadingClassNames: function loadingClassNames(props) {