vcc-ui
Version:
VCC UI is a collection of React UI Components that can be used for developing front-end applications at Volvo Car Corporation.
24 lines (20 loc) • 684 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.deprecate = deprecate;
exports.deprecateInnerRef = deprecateInnerRef;
var isProduction = process.env.NODE_ENV === 'production';
var cache = {};
function deprecate(message, condition) {
if (!isProduction && !cache[message] && condition) {
cache[message] = true;
/* eslint-disable no-console */
console.warn('VCC UI Deprecation Notice:\n', message);
/* eslint-enable */
}
}
function deprecateInnerRef(_ref) {
var innerRef = _ref.innerRef;
deprecate('The `innerRef` prop has been deprecated in favor of the `ref` prop. It will be removed with version 2.0.0.', innerRef);
}