mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-02-12 19:22:28 +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(() => {
|
useEffect(() => {
|
||||||
listContainer.current?.addEventListener("scroll", handleScroll);
|
const container = listContainer.current;
|
||||||
return () =>
|
container?.addEventListener("scroll", handleScroll);
|
||||||
listContainer.current?.removeEventListener("scroll", handleScroll);
|
return () => container?.removeEventListener("scroll", handleScroll);
|
||||||
}, [isLoading]);
|
}, [isLoading]);
|
||||||
|
|
||||||
const reloadList = () => {
|
const reloadList = () => {
|
||||||
|
|
|
@ -125,7 +125,7 @@ export function UserContent({
|
||||||
}
|
}
|
||||||
|
|
||||||
setCurrentGame(userProfile.currentGame);
|
setCurrentGame(userProfile.currentGame);
|
||||||
}, [gameRunning, isMe]);
|
}, [gameRunning, isMe, userProfile.currentGame]);
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (isMe) fetchFriendRequests();
|
if (isMe) fetchFriendRequests();
|
||||||
|
|
|
@ -51,9 +51,9 @@ export const UserEditProfileBlockList = () => {
|
||||||
};
|
};
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
listContainer.current?.addEventListener("scroll", handleScroll);
|
const container = listContainer.current;
|
||||||
return () =>
|
container?.addEventListener("scroll", handleScroll);
|
||||||
listContainer.current?.removeEventListener("scroll", handleScroll);
|
return () => container?.removeEventListener("scroll", handleScroll);
|
||||||
}, [isLoading]);
|
}, [isLoading]);
|
||||||
|
|
||||||
const reloadList = () => {
|
const reloadList = () => {
|
||||||
|
|
Loading…
Reference in a new issue