Lint semicolons
parent
0904ae8c7a
commit
2379ec577c
|
@ -41,12 +41,10 @@ export default class DecoratedRoomAvatar extends React.PureComponent<IProps, ISt
|
|||
|
||||
this.state = {
|
||||
notificationState: new TagSpecificNotificationState(this.props.room, this.props.tag),
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
public render(): React.ReactNode {
|
||||
console.log({tag: this.props.tag})
|
||||
|
||||
let badge: React.ReactNode;
|
||||
if (this.props.displayBadge) {
|
||||
badge = <NotificationBadge
|
||||
|
@ -60,6 +58,6 @@ export default class DecoratedRoomAvatar extends React.PureComponent<IProps, ISt
|
|||
<RoomAvatar room={this.props.room} width={this.props.avatarSize} height={this.props.avatarSize} />
|
||||
<RoomTileIcon room={this.props.room} tag={this.props.tag} />
|
||||
{badge}
|
||||
</div>
|
||||
</div>;
|
||||
}
|
||||
}
|
|
@ -95,7 +95,7 @@ export default class RoomBreadcrumbs2 extends React.PureComponent<IProps, IState
|
|||
// TODO: Scrolling: https://github.com/vector-im/riot-web/issues/14040
|
||||
// TODO: Tooltips: https://github.com/vector-im/riot-web/issues/14040
|
||||
const tiles = BreadcrumbsStore.instance.rooms.map((r, i) => {
|
||||
const roomTags = RoomListStore.instance.getTagsForRoom(r)
|
||||
const roomTags = RoomListStore.instance.getTagsForRoom(r);
|
||||
const roomTag = roomTags.includes(DefaultTagID.DM) ? DefaultTagID.DM : roomTags[0];
|
||||
return (
|
||||
<AccessibleButton
|
||||
|
|
|
@ -238,15 +238,15 @@ export default class RoomTile2 extends React.Component<IProps, IState> {
|
|||
avatarSize={avatarSize}
|
||||
tag={this.props.tag}
|
||||
displayBadge={this.props.isMinimized}
|
||||
/>
|
||||
/>;
|
||||
|
||||
let badge: React.ReactNode;
|
||||
let badge: React.ReactNode;
|
||||
if (!this.props.isMinimized) {
|
||||
badge = <NotificationBadge
|
||||
notification={this.state.notificationState}
|
||||
forceCount={false}
|
||||
roomId={this.props.room.roomId}
|
||||
/>
|
||||
/>;
|
||||
}
|
||||
|
||||
// TODO: the original RoomTile uses state for the room name. Do we need to?
|
||||
|
|
Loading…
Reference in New Issue