优化代码

This commit is contained in:
smallchill 2019-01-04 13:53:52 +08:00
parent 4bb1c2a7cf
commit 8c74919558

View File

@ -10,7 +10,7 @@ const { TabPane } = Tabs;
@connect(({ menu }) => ({
menu,
}))
class Index extends PureComponent {
class IconPreview extends PureComponent {
handelClick = type => {
const { onCancel, dispatch } = this.props;
dispatch(MENU_SELECT_ICON(type.icon));
@ -42,4 +42,4 @@ class Index extends PureComponent {
);
}
}
export default Index;
export default IconPreview;