mirror of
https://github.com/ant-design/ant-design.git
synced 2025-01-19 06:43:16 +08:00
fix: add NODE_ENV for Icon warning (#43574)
This commit is contained in:
parent
38474628fd
commit
94541eda67
@ -1,7 +1,9 @@
|
||||
import warning from '../_util/warning';
|
||||
|
||||
const Icon: React.FC = () => {
|
||||
warning(false, 'Icon', 'Empty Icon');
|
||||
if (process.env.NODE_ENV !== 'production') {
|
||||
warning(false, 'Icon', 'Empty Icon');
|
||||
}
|
||||
return null;
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user