mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-02-12 11:12:07 +00:00
chore: lint warnings
This commit is contained in:
parent
bab041b5f7
commit
ac6ff04e69
3 changed files with 7 additions and 7 deletions
|
@ -62,9 +62,9 @@ export const UserFriendModalList = ({
|
|||
};
|
||||
|
||||
useEffect(() => {
|
||||
listContainer.current?.addEventListener("scroll", handleScroll);
|
||||
return () =>
|
||||
listContainer.current?.removeEventListener("scroll", handleScroll);
|
||||
const container = listContainer.current;
|
||||
container?.addEventListener("scroll", handleScroll);
|
||||
return () => container?.removeEventListener("scroll", handleScroll);
|
||||
}, [isLoading]);
|
||||
|
||||
const reloadList = () => {
|
||||
|
|
|
@ -125,7 +125,7 @@ export function UserContent({
|
|||
}
|
||||
|
||||
setCurrentGame(userProfile.currentGame);
|
||||
}, [gameRunning, isMe]);
|
||||
}, [gameRunning, isMe, userProfile.currentGame]);
|
||||
|
||||
useEffect(() => {
|
||||
if (isMe) fetchFriendRequests();
|
||||
|
|
|
@ -51,9 +51,9 @@ export const UserEditProfileBlockList = () => {
|
|||
};
|
||||
|
||||
useEffect(() => {
|
||||
listContainer.current?.addEventListener("scroll", handleScroll);
|
||||
return () =>
|
||||
listContainer.current?.removeEventListener("scroll", handleScroll);
|
||||
const container = listContainer.current;
|
||||
container?.addEventListener("scroll", handleScroll);
|
||||
return () => container?.removeEventListener("scroll", handleScroll);
|
||||
}, [isLoading]);
|
||||
|
||||
const reloadList = () => {
|
||||
|
|
Loading…
Reference in a new issue