mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-17 05:10:31 +00:00
fix bugs.
This commit is contained in:
@@ -9,7 +9,8 @@ export default function DashboardContentRoute() {
|
||||
<Switch>
|
||||
{ routes.map((route, index) => (
|
||||
<Route
|
||||
key={index}
|
||||
exact
|
||||
// key={index}
|
||||
path={`${route.path}`}
|
||||
component={route.component} />
|
||||
))}
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user