Browse Source

fix: add NODE_ENV for Icon warning (#43574)

pull/43580/head
lijianan 1 year ago
committed by GitHub
parent
commit
94541eda67
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      components/icon/index.ts

2
components/icon/index.ts

@ -1,7 +1,9 @@
import warning from '../_util/warning';
const Icon: React.FC = () => {
if (process.env.NODE_ENV !== 'production') {
warning(false, 'Icon', 'Empty Icon');
}
return null;
};

Loading…
Cancel
Save