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

@ -1,4 +1,4 @@
import React, { FC, useCallback, useEffect, useState } from 'react';
import React, { FC, useCallback, useEffect } from 'react';
import styles from './styles.module.scss';
import { SidebarWrapper } from '~/containers/sidebars/SidebarWrapper';
import { connect } from 'react-redux';
@ -37,11 +37,11 @@ const ProfileSidebarUnconnected: FC<Props> = ({
useEffect(() => {
authLoadProfile(username);
}, [username]);
}, [authLoadProfile, username]);
const history = useHistory();
const basePath = url.replace(new RegExp(`\/~${username}$`), '');
const onClose = useCallback(() => history.push(basePath), [basePath]);
const onClose = useCallback(() => history.push(basePath), [basePath, history]);
useCloseOnEscape(onClose);