web: components: GroupButtonsMenu optimization
This commit is contained in:
parent
4d21724504
commit
9ad471995a
@ -135,7 +135,7 @@ class GroupButtonsMenu extends React.PureComponent {
|
|||||||
isSelect={item.isSelect}
|
isSelect={item.isSelect}
|
||||||
onSelect={item.onSelect}
|
onSelect={item.onSelect}
|
||||||
fontWeight={item.fontWeight}
|
fontWeight={item.fontWeight}
|
||||||
onClick={() => this.groupButtonClick(item)}
|
onClick={this.groupButtonClick.bind(this, item)}
|
||||||
{...this.props}
|
{...this.props}
|
||||||
>
|
>
|
||||||
{item.children}
|
{item.children}
|
||||||
@ -148,7 +148,7 @@ class GroupButtonsMenu extends React.PureComponent {
|
|||||||
<DropDownItem
|
<DropDownItem
|
||||||
key={`moreNavItem-${i}`}
|
key={`moreNavItem-${i}`}
|
||||||
label={item.label}
|
label={item.label}
|
||||||
onClick={() => this.groupButtonClick(item)}
|
onClick={this.groupButtonClick.bind(this, item)}
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
</GroupButton>
|
</GroupButton>
|
||||||
|
Loading…
Reference in New Issue
Block a user