From a5b85fd520071abcfbfb85bcc431eeb032f9c6e5 Mon Sep 17 00:00:00 2001 From: HeskeyBaozi Date: Thu, 19 Jul 2018 20:24:04 +0800 Subject: [PATCH] remove AntdIcon.library, make it inner. --- components/icon/index.tsx | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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",