优化代码

This commit is contained in:
smallchill 2019-01-24 22:15:14 +08:00
parent 203d28c260
commit 2a4d998230

View File

@ -10,9 +10,7 @@ export default class ToolBar extends PureComponent {
<div className={styles.operator}>
<div>
{buttons
.filter(button => {
return button.action === 1 || button.action === 3;
})
.filter(button => button.action === 1 || button.action === 3)
.map(button => (
<Button
key={button.code}