Skip to content

Commit b83a865

Browse files
committed
lint
1 parent e661903 commit b83a865

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/components/views/rooms/MemberList/MemberListView.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ Please see LICENSE files in the repository root for full details.
77

88
import { Form } from "@vector-im/compound-web";
99
import React, { useRef, type JSX } from "react";
10+
import { Virtuoso, VirtuosoHandle } from "react-virtuoso";
1011

1112
import { Flex } from "../../../utils/Flex";
1213
import {
@@ -19,7 +20,6 @@ import { ThreePidInviteTileView } from "./tiles/ThreePidInviteTileView";
1920
import { MemberListHeaderView } from "./MemberListHeaderView";
2021
import BaseCard from "../../right_panel/BaseCard";
2122
import { _t } from "../../../../languageHandler";
22-
import { Virtuoso, VirtuosoHandle } from "react-virtuoso";
2323

2424
interface IProps {
2525
roomId: string;
@@ -75,7 +75,7 @@ const MemberListView: React.FC<IProps> = (props: IProps) => {
7575
}
7676
}
7777
},
78-
[focusedIndex, ref, setFocusedIndex],
78+
[focusedIndex, ref, setFocusedIndex, vm, totalRows],
7979
);
8080

8181
const scrollerRef = React.useCallback(
@@ -91,13 +91,13 @@ const MemberListView: React.FC<IProps> = (props: IProps) => {
9191
);
9292

9393
const onFocus = (e: React.FocusEvent): void => {
94-
let nextIndex = focusedIndex == -1 ? 0 : focusedIndex;
94+
const nextIndex = focusedIndex == -1 ? 0 : focusedIndex;
9595
scrollToIndex(nextIndex);
9696
e.preventDefault();
9797
};
9898

99-
function footer() {
100-
return <div style={{ height: "32px" }}></div>;
99+
function footer(): React.ReactNode {
100+
return <div style={{ height: "32px" }} />;
101101
}
102102

103103
return (

src/components/views/rooms/MemberList/tiles/common/MemberTileView.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only OR LicenseRef-Element-Com
55
Please see LICENSE files in the repository root for full details.
66
*/
77

8+
import classNames from "classnames";
89
import React, { type JSX } from "react";
910

1011
import AccessibleButton from "../../../../elements/AccessibleButton";
11-
import classNames from "classnames";
1212

1313
interface Props {
1414
avatarJsx: JSX.Element;

0 commit comments

Comments
 (0)