mirror of
https://github.com/supabase/supabase.git
synced 2026-10-09 19:35:06 +03:00
Remove unused FunctionsNav
This commit is contained in:
1 parent
2913d7ec86
commit
b613b8e1ea
2 files changed
-32
No files matched your search
@@ -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,
|
||||
|
||||
@@ -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 (
|
||||
<Tabs
|
||||
defaultActiveId="1"
|
||||
type="underlined"
|
||||
size="medium"
|
||||
baseClassNames="space-y-0!"
|
||||
activeId={!activeRoute ? 'overview' : activeRoute}
|
||||
onChange={(e: string) => {
|
||||
if (item?.slug) {
|
||||
router.push(`/project/${ref}/functions/${item.slug}/${e === 'overview' ? '' : e}`)
|
||||
}
|
||||
}}
|
||||
>
|
||||
<Tabs.Panel id="overview" label="Overview" />
|
||||
<Tabs.Panel id="invocations" label="Invocations" />
|
||||
<Tabs.Panel id="logs" label="Logs" />
|
||||
<Tabs.Panel id="details" label="Details" />
|
||||
</Tabs>
|
||||
)
|
||||
}
|
||||
|
||||
export default FunctionsNav
|
||||
Reference in new issue
Block a user