1
0
Fork 0
mirror of https://github.com/muerwre/vault-frontend.git synced 2025-04-25 12:56:41 +07:00

eslint auto-fix

This commit is contained in:
Fedor Katurov 2021-11-21 16:44:19 +07:00
parent 312156bdf8
commit 4c4461ea19
55 changed files with 107 additions and 110 deletions

View file

@ -24,7 +24,7 @@ const ProfileLayoutUnconnected: FC<IProps> = ({ history, nodeSetCoverImage }) =>
useEffect(() => {
if (user) setUser(undefined);
}, [username]);
}, [user, username]);
useEffect(() => {
if (user && user.id && user.cover) {
@ -33,7 +33,7 @@ const ProfileLayoutUnconnected: FC<IProps> = ({ history, nodeSetCoverImage }) =>
nodeSetCoverImage(undefined);
};
}
}, [user]);
}, [nodeSetCoverImage, user]);
return (
<Group className={styles.wrap} horizontal>

View file

@ -47,7 +47,7 @@ const ProfileMessagesUnconnected: FC<IProps> = ({
if (profile.is_loading || !profile.user || !profile.user.username) return;
messagesGetMessages(profile.user.username);
}, [profile.user]);
}, [messagesGetMessages, profile.is_loading, profile.user]);
useEffect(() => {
const timer = setInterval(messagesRefreshMessages, 20000);
@ -73,7 +73,7 @@ const ProfileMessagesUnconnected: FC<IProps> = ({
if (wasAtBottom.current) {
parent.scrollTo(0, parent.scrollHeight);
}
}, [messages.messages]);
}, [messages.messages, wrap]);
const onScroll = useCallback(() => {
const parent = wrap?.parentElement;