web: components: GroupButtonsMenu optimization

This commit is contained in:
Alexey Safronov 2019-07-31 22:28:55 +03:00
parent 4d21724504
commit 9ad471995a

View File

@ -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>