⚡ 优化代码
This commit is contained in:
parent
4bb1c2a7cf
commit
8c74919558
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user