UNPKG

@salesforce/design-system-react

Version:

Salesforce Lightning Design System for React

21 lines (15 loc) 776 B
/* Copyright (c) 2015-present, salesforce.com, inc. All rights reserved */ /* Licensed under BSD 3-Clause - see LICENSE.txt or git.io/sfdc-license */ /* eslint-disable import/no-mutable-exports */ /* eslint-disable max-len */ import getComponentDocFn from '../../utilities/get-component-doc'; import sunsetProperty from '../../utilities/warning/sunset-property'; var checkProps = function checkPropsFunction() {}; if (process.env.NODE_ENV !== 'production') { checkProps = function checkPropsFunction(COMPONENT, props, jsonDoc) { var createDocUrl = getComponentDocFn(jsonDoc); sunsetProperty(COMPONENT, props.label, 'label', "Use `labels.label` instead.".concat(createDocUrl('labels'))); }; } export default checkProps; //# sourceMappingURL=check-props.js.map