⚡ 优化代码
This commit is contained in:
parent
203d28c260
commit
2a4d998230
|
|
@ -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}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user