Lint semicolons

This commit is contained in:
Jorik Schellekens 2020-06-30 23:39:25 +01:00
parent 0904ae8c7a
commit 2379ec577c
3 changed files with 6 additions and 8 deletions

View file

@ -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>;
}
}

View file

@ -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

View file

@ -238,7 +238,7 @@ export default class RoomTile2 extends React.Component<IProps, IState> {
avatarSize={avatarSize}
tag={this.props.tag}
displayBadge={this.props.isMinimized}
/>
/>;
let badge: React.ReactNode;
if (!this.props.isMinimized) {
@ -246,7 +246,7 @@ export default class RoomTile2 extends React.Component<IProps, IState> {
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?