From 08dd5174b30c6bfd22f703a962c9abcfd3e87fa8 Mon Sep 17 00:00:00 2001 From: Vladyslav Matsiiako Date: Fri, 13 Jan 2023 22:59:43 -0800 Subject: [PATCH] Making the dashboard less clunky --- README.md | 2 +- frontend/components/RouteGuard.js | 15 +-------------- frontend/pages/dashboard/[id].tsx | 2 +- 3 files changed, 3 insertions(+), 16 deletions(-) diff --git a/README.md b/README.md index 67b6d519cb..756f65f927 100644 --- a/README.md +++ b/README.md @@ -333,7 +333,7 @@ Infisical officially launched as v.1.0 on November 21st, 2022. There are a lot o - + ## 🌎 Translations diff --git a/frontend/components/RouteGuard.js b/frontend/components/RouteGuard.js index c5f6feb35e..f3693abec4 100644 --- a/frontend/components/RouteGuard.js +++ b/frontend/components/RouteGuard.js @@ -68,18 +68,5 @@ export default function RouteGuard({ children }) { } } - if (authorized) { - return children; - } else { - return ( -
- google logo -
- ); - } + return children; } diff --git a/frontend/pages/dashboard/[id].tsx b/frontend/pages/dashboard/[id].tsx index 9438cf1153..1a9cd41da1 100644 --- a/frontend/pages/dashboard/[id].tsx +++ b/frontend/pages/dashboard/[id].tsx @@ -220,7 +220,7 @@ export default function Dashboard() { setData(undefined); } })(); - }, []); + }, [workspaceId]); useEffect(() => { (async () => {