1
0
Fork 0
mirror of https://github.com/muerwre/vault-frontend.git synced 2025-04-25 21:06:42 +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

@ -62,7 +62,7 @@ const HeaderUnconnected: FC<IProps> = memo(
useEffect(() => {
onScroll();
}, []);
}, [onScroll]);
useEffect(() => {
window.addEventListener('scroll', onScroll);
@ -74,7 +74,7 @@ const HeaderUnconnected: FC<IProps> = memo(
is_user &&
boris_commented_at &&
(!last_seen_boris || isBefore(new Date(last_seen_boris), new Date(boris_commented_at))),
[boris_commented_at, last_seen_boris]
[boris_commented_at, is_user, last_seen_boris]
);
const hasLabUpdates = useMemo(() => labUpdates.length > 0, [labUpdates]);

View file

@ -1,4 +1,4 @@
import React, { FC, useMemo, useState, useCallback, useEffect } from 'react';
import React, { FC, useCallback, useEffect, useMemo, useState } from 'react';
import { Icon } from '~/components/input/Icon';
import styles from './styles.module.scss';
import { connect } from 'react-redux';
@ -7,7 +7,7 @@ import { pick } from 'ramda';
import classNames from 'classnames';
import * as AUTH_ACTIONS from '~/redux/auth/actions';
import { NotificationBubble } from '../../notifications/NotificationBubble';
import { INotification, IMessageNotification } from '~/redux/types';
import { IMessageNotification, INotification } from '~/redux/types';
const mapStateToProps = state => ({
user: pick(['last_seen_messages'], selectAuthUser(state)),
@ -62,7 +62,7 @@ const NotificationsUnconnected: FC<IProps> = ({
useEffect(() => {
if (!visible || !has_new || !last) return;
authSetLastSeenMessages(last);
}, [visible, last]);
}, [visible, last, has_new, authSetLastSeenMessages]);
return (
<div