UNPKG

@salesforce/design-system-react

Version:

Salesforce Lightning Design System for React

32 lines (23 loc) 1.03 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _ifOneThenBothRequiredProperty = require("../../utilities/warning/if-one-then-both-required-property"); var _ifOneThenBothRequiredProperty2 = _interopRequireDefault(_ifOneThenBothRequiredProperty); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } /* 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 */ var checkProps = function checkProps() {}; if (process.env.NODE_ENV !== 'production') { checkProps = function checkProps(COMPONENT, props) { /* eslint-disable max-len */ // Deprecated and changed to another property (0, _ifOneThenBothRequiredProperty2.default)(COMPONENT, props, { isSorted: props.isSorted, sortDirection: props.sortDirection }); /* eslint-enable max-len */ }; } exports.default = checkProps;