use JSX spread attributes
This commit is contained in:
parent
c0e1aeeff8
commit
dfa09244c5
@ -142,11 +142,13 @@ class UserDropdown extends Component {
|
||||
makeDropdownItem(key, label, onClick, icon = null, iconRight = null) {
|
||||
return (
|
||||
<DropdownListItem
|
||||
key={key}
|
||||
label={label}
|
||||
onClick={onClick}
|
||||
icon={icon}
|
||||
iconRight={iconRight}
|
||||
{...{
|
||||
key,
|
||||
label,
|
||||
onClick,
|
||||
icon,
|
||||
iconRight,
|
||||
}}
|
||||
className={key === this.props.getEmoji ? styles.emojiSelected : null}
|
||||
/>
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user