human linter and copyright fixer

This commit is contained in:
Germain Souquet 2021-08-26 08:02:36 +01:00
parent e1e0278190
commit cb8e62c0b2
10 changed files with 14 additions and 18 deletions

View file

@ -30,14 +30,14 @@ interface IProps {
@replaceableComponent("views.rooms.RoomDetailList")
export default class RoomDetailList extends React.Component<IProps> {
public getRows(): JSX.Element[] {
private getRows(): JSX.Element[] {
if (!this.props.rooms) return [];
return this.props.rooms.map((room, index) => {
return <RoomDetailRow key={index} room={room} onClick={this.onDetailsClick} />;
});
}
public onDetailsClick = (ev: React.MouseEvent, room: Room): void => {
private onDetailsClick = (ev: React.MouseEvent, room: Room): void => {
dis.dispatch({
action: 'view_room',
room_id: room.roomId,