Ternary
parent
dad1d3f131
commit
7babdd9c9d
|
@ -116,7 +116,7 @@ const EmojiButton: React.FC<IEmojiButtonProps> = ({ addEmoji, menuPosition, narr
|
||||||
className={className}
|
className={className}
|
||||||
onClick={openMenu}
|
onClick={openMenu}
|
||||||
title={!narrowMode && _t('Emoji picker')}
|
title={!narrowMode && _t('Emoji picker')}
|
||||||
label={(narrowMode && _t("Add emoji")) || null}
|
label={narrowMode ? _t("Add emoji") : null}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
{ contextMenu }
|
{ contextMenu }
|
||||||
|
@ -485,7 +485,7 @@ export default class MessageComposer extends React.Component<IProps, IState> {
|
||||||
className="mx_MessageComposer_button mx_MessageComposer_stickers"
|
className="mx_MessageComposer_button mx_MessageComposer_stickers"
|
||||||
onClick={() => this.showStickers(!this.state.showStickers)}
|
onClick={() => this.showStickers(!this.state.showStickers)}
|
||||||
title={title}
|
title={title}
|
||||||
label={(this.state.narrowMode && _t("Send a sticker")) || null}
|
label={this.state.narrowMode ? _t("Send a sticker") : null}
|
||||||
/>,
|
/>,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue