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