PropWarning.js 624 B

12345678910111213141516171819
  1. "use client";
  2. import * as React from 'react';
  3. import { devUseWarning } from '../_util/warning';
  4. /**
  5. * Warning for ConfigProviderProps.
  6. * This will be empty function in production.
  7. */
  8. const PropWarning = /*#__PURE__*/React.memo(({
  9. dropdownMatchSelectWidth
  10. }) => {
  11. const warning = devUseWarning('ConfigProvider');
  12. warning.deprecated(dropdownMatchSelectWidth === undefined, 'dropdownMatchSelectWidth', 'popupMatchSelectWidth');
  13. return null;
  14. });
  15. if (process.env.NODE_ENV !== 'production') {
  16. PropWarning.displayName = 'PropWarning';
  17. }
  18. export default process.env.NODE_ENV !== 'production' ? PropWarning : () => null;