fix bugs.

This commit is contained in:
Ahmed Bouhuolia
2020-04-29 05:11:02 +02:00
parent f4520e4e5c
commit f6c5cae82e
42 changed files with 575 additions and 401 deletions

View File

@@ -15,11 +15,8 @@ function DashboardTopbarUser({ logout }) {
const onClickLogout = useCallback(() => {
logout();
setTimeout(() => {
history.push('/auth/login');
}, 100);
}, [history, logout]);
history.go('/auth/login');
}, [logout, history]);
const userAvatarDropMenu = useMemo(() => (
<Menu>