mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-17 22:14:58 +08: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
@ -226,17 +226,11 @@ module.exports = React.createClass({
|
|||||||
roomName = this.props.room.name;
|
roomName = this.props.room.name;
|
||||||
}
|
}
|
||||||
|
|
||||||
const innerName =
|
name =
|
||||||
<EmojiText element="div"
|
<div className="mx_RoomHeader_name" onClick={this.props.onSettingsClick}>
|
||||||
className={ "mx_RoomHeader_nametext " + (settingsHint ? "mx_RoomHeader_settingsHint" : "") }
|
<EmojiText element="div" className={ "mx_RoomHeader_nametext " + (settingsHint ? "mx_RoomHeader_settingsHint" : "") } title={ roomName }>{roomName}</EmojiText>
|
||||||
title={ roomName }>{roomName}</EmojiText>;
|
{ searchStatus }
|
||||||
|
</div>;
|
||||||
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>;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (can_set_room_topic) {
|
if (can_set_room_topic) {
|
||||||
|
Loading…
Reference in New Issue
Block a user