mirror of
https://github.com/element-hq/element-web
synced 2024-11-27 11:47:23 +03:00
revert name overengineering, undefined onClick should be fine on div
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
parent
5e4467adce
commit
69d860e982
1 changed files with 5 additions and 11 deletions
|
@ -226,17 +226,11 @@ module.exports = React.createClass({
|
|||
roomName = this.props.room.name;
|
||||
}
|
||||
|
||||
const innerName =
|
||||
<EmojiText element="div"
|
||||
className={ "mx_RoomHeader_nametext " + (settingsHint ? "mx_RoomHeader_settingsHint" : "") }
|
||||
title={ roomName }>{roomName}</EmojiText>;
|
||||
|
||||
if (this.props.onSettingsClick) {
|
||||
name = <div className="mx_RoomHeader_name" onClick={this.props.onSettingsClick}>{ innerName }{ searchStatus }</div>;
|
||||
} else {
|
||||
name = <div className="mx_RoomHeader_name">{ innerName }{ searchStatus }</div>;
|
||||
}
|
||||
|
||||
name =
|
||||
<div className="mx_RoomHeader_name" onClick={this.props.onSettingsClick}>
|
||||
<EmojiText element="div" className={ "mx_RoomHeader_nametext " + (settingsHint ? "mx_RoomHeader_settingsHint" : "") } title={ roomName }>{roomName}</EmojiText>
|
||||
{ searchStatus }
|
||||
</div>;
|
||||
}
|
||||
|
||||
if (can_set_room_topic) {
|
||||
|
|
Loading…
Reference in a new issue