From ef628c558317b227828924647918db4723b0e674 Mon Sep 17 00:00:00 2001 From: Abdhesh Nayak Date: Mon, 11 Mar 2024 18:31:54 +0530 Subject: [PATCH] :coffin: Removed dead code --- .../_main+/$account+/projects/route.tsx | 92 ++++++++----------- 1 file changed, 40 insertions(+), 52 deletions(-) diff --git a/src/apps/console/routes/_main+/$account+/projects/route.tsx b/src/apps/console/routes/_main+/$account+/projects/route.tsx index 27361edb3..640dd417d 100644 --- a/src/apps/console/routes/_main+/$account+/projects/route.tsx +++ b/src/apps/console/routes/_main+/$account+/projects/route.tsx @@ -10,7 +10,6 @@ import { IRemixCtx } from '~/root/lib/types/common'; import fake from '~/root/fake-data-generator/fake'; import { ensureAccountSet } from '~/console/server/utils/auth-utils'; import { GQLServerHandler } from '~/console/server/gql/saved-queries'; -import { useReload } from '~/root/lib/client/helpers/reloader'; import Tools from './tools'; import ProjectResourcesV2 from './project-resources-v2'; @@ -154,58 +153,47 @@ const Projects = () => { }; }; - const reloadPage = useReload(); - return ( -
-
{ - reloadPage(); - }} - > - reloadPage -
- - {({ projectsData, clustersCount, cloudProviderSecretsCount }) => { - const projects = projectsData.edges?.map(({ node }) => node); - if (!projects) { - return null; - } - - return ( - 0 && ( -
+ + {({ projectsData, clustersCount, cloudProviderSecretsCount }) => { + const projects = projectsData.edges?.map(({ node }) => node); + if (!projects) { + return null; + } + + return ( + 0 && ( +