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