diff --git a/components/icon/index.tsx b/components/icon/index.tsx index d08b8d70f5..45f7003bf4 100755 --- a/components/icon/index.tsx +++ b/components/icon/index.tsx @@ -5,7 +5,7 @@ import { antDesignIcons } from '@ant-design/icons'; import AntdIcon from '@ant-design/icons-react'; import CustomIcon, { create } from './CustomIcon'; -AntdIcon.library.add(...antDesignIcons); +AntdIcon.add(...antDesignIcons); export interface IconProps { type: string; diff --git a/package.json b/package.json index 20d3f22116..00ead64487 100644 --- a/package.json +++ b/package.json @@ -40,7 +40,7 @@ }, "dependencies": { "@ant-design/icons": "^0.1.0-alpha.2", - "@ant-design/icons-react": "^0.1.0-alpha.5", + "@ant-design/icons-react": "^0.1.0-alpha.6", "array-tree-filter": "^2.0.0", "babel-runtime": "6.x", "classnames": "~2.2.0",