Making the dashboard less clunky

This commit is contained in:
Vladyslav Matsiiako
2023-01-13 22:59:43 -08:00
parent 5d8c4ad03f
commit 08dd5174b3
3 changed files with 3 additions and 16 deletions

View File

@@ -68,18 +68,5 @@ export default function RouteGuard({ children }) {
}
}
if (authorized) {
return children;
} else {
return (
<div className="w-screen h-screen bg-bunker-800 flex items-center justify-center">
<Image
src="/images/loading/loading.gif"
height={70}
width={120}
alt="google logo"
></Image>
</div>
);
}
return children;
}

View File

@@ -220,7 +220,7 @@ export default function Dashboard() {
setData(undefined);
}
})();
}, []);
}, [workspaceId]);
useEffect(() => {
(async () => {