use JSX spread attributes

This commit is contained in:
KDSBrowne 2018-08-15 15:02:48 +00:00
parent c0e1aeeff8
commit dfa09244c5

View File

@ -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}
/>
);