From b613b8e1ea7d07b972bc2a2182b18888f2f408fc Mon Sep 17 00:00:00 2001 From: Gildas Garcia <1122076+djhi@users.noreply.github.com> Date: Wed, 27 May 2026 17:51:26 +0200 Subject: [PATCH] Remove unused `FunctionsNav` --- .../studio/.github/eslint-rule-baselines.json | 2 -- .../interfaces/Functions/FunctionsNav.tsx | 30 ------------------- 2 files changed, 32 deletions(-) delete mode 100644 apps/studio/components/interfaces/Functions/FunctionsNav.tsx diff --git a/apps/studio/.github/eslint-rule-baselines.json b/apps/studio/.github/eslint-rule-baselines.json index 5d73ab0d01b..1402026ff4b 100644 --- a/apps/studio/.github/eslint-rule-baselines.json +++ b/apps/studio/.github/eslint-rule-baselines.json @@ -286,7 +286,6 @@ "components/interfaces/Functions/EdgeFunctionDetails/EdgeFunctionDetails.tsx": 1, "components/interfaces/Functions/EdgeFunctionDetails/EdgeFunctionDetails.utils.tsx": 3, "components/interfaces/Functions/EdgeFunctionDetails/EdgeFunctionTesterSheet.tsx": 1, - "components/interfaces/Functions/FunctionsNav.tsx": 1, "components/interfaces/Home/Home.tsx": 6, "components/interfaces/Home/ProjectList/ProjectList.tsx": 1, "components/interfaces/Home/ProjectUsage.tsx": 1, @@ -692,7 +691,6 @@ "components/interfaces/Functions/CommandRender.tsx": 1, "components/interfaces/Functions/EdgeFunctionOverview/EdgeFunctionOverview.tsx": 1, "components/interfaces/Functions/EdgeFunctionSecrets/EdgeFunctionSecret.tsx": 1, - "components/interfaces/Functions/FunctionsNav.tsx": 1, "components/interfaces/Home/ProjectUsage.tsx": 1, "components/interfaces/Integrations/CronJobs/CronJobsEmptyState.tsx": 1, "components/interfaces/Integrations/CronJobs/CronSyntaxChart.tsx": 1, diff --git a/apps/studio/components/interfaces/Functions/FunctionsNav.tsx b/apps/studio/components/interfaces/Functions/FunctionsNav.tsx deleted file mode 100644 index fef34f7f0af..00000000000 --- a/apps/studio/components/interfaces/Functions/FunctionsNav.tsx +++ /dev/null @@ -1,30 +0,0 @@ -import { useRouter } from 'next/router' -import { Tabs } from 'ui' - -const FunctionsNav = ({ item }: any) => { - const router = useRouter() - const activeRoute = router.pathname.split('/')[5] - const { ref } = router.query - - return ( - { - if (item?.slug) { - router.push(`/project/${ref}/functions/${item.slug}/${e === 'overview' ? '' : e}`) - } - }} - > - - - - - - ) -} - -export default FunctionsNav