mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-09-22 13:39:35 +00:00
Making the dashboard less clunky
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -220,7 +220,7 @@ export default function Dashboard() {
|
||||
setData(undefined);
|
||||
}
|
||||
})();
|
||||
}, []);
|
||||
}, [workspaceId]);
|
||||
|
||||
useEffect(() => {
|
||||
(async () => {
|
||||
|
||||
Reference in New Issue
Block a user