PropWarning.js 874 B

12345678910111213141516171819202122232425
  1. "use strict";
  2. "use client";
  3. var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
  4. Object.defineProperty(exports, "__esModule", {
  5. value: true
  6. });
  7. exports.default = void 0;
  8. var React = _interopRequireWildcard(require("react"));
  9. var _warning = require("../_util/warning");
  10. /**
  11. * Warning for ConfigProviderProps.
  12. * This will be empty function in production.
  13. */
  14. const PropWarning = /*#__PURE__*/React.memo(({
  15. dropdownMatchSelectWidth
  16. }) => {
  17. const warning = (0, _warning.devUseWarning)('ConfigProvider');
  18. warning.deprecated(dropdownMatchSelectWidth === undefined, 'dropdownMatchSelectWidth', 'popupMatchSelectWidth');
  19. return null;
  20. });
  21. if (process.env.NODE_ENV !== 'production') {
  22. PropWarning.displayName = 'PropWarning';
  23. }
  24. var _default = exports.default = process.env.NODE_ENV !== 'production' ? PropWarning : () => null;