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:
parent
312156bdf8
commit
4c4461ea19
55 changed files with 107 additions and 110 deletions
|
@ -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>
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue