Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

Cleanup

Terry Suttone50b7f5c60fa
diff --git a/packages/ui/src/components/Command/CommandMenu.tsx b/packages/ui/src/components/Command/CommandMenu.tsx
index a3a4f594ed4..0000e67050f 100644
--- a/packages/ui/src/components/Command/CommandMenu.tsx
+++ b/packages/ui/src/components/Command/CommandMenu.tsx
@@ -27,7 +27,6 @@ import {
} from './Command.utils'
import { useCommandMenu } from './CommandMenuProvider'
import DocsSearch from './DocsSearch'
-import DashboardTableEditor from './sections/DashboardTableEditor'
import CommandMenuShortcuts from './CommandMenuShortcuts'
import SearchOnlyItem from './SearchOnlyItem'
import SearchableStudioItems from './SearchableStudioItems'
diff --git a/packages/ui/src/components/Command/sections/DashboardTableEditor.tsx b/packages/ui/src/components/Command/sections/DashboardTableEditor.tsx
deleted file mode 100644
index df63bc8ff39..00000000000
--- a/packages/ui/src/components/Command/sections/DashboardTableEditor.tsx
+++ /dev/null
@@ -1,49 +0,0 @@
-import { useRouter } from 'next/router'
-import * as React from 'react'
-import { IconArrowRight } from '../../Icon/icons/IconArrowRight'
-import dashboardItems from '../utils/dashboard-nav-items.json'
-import { CommandGroup, CommandItem, CommandLabel, CommandList } from '../Command.utils'
-import { useCommandMenu } from '../CommandMenuProvider'
-
-export default function DashboardTableEditor() {
- const router = useRouter()
- const { setPages, currentPage, pages } = useCommandMenu()
-
- return (
- <CommandGroup heading={dashboardItems.tools.label}>
- <CommandList>
- {!currentPage && (
- <>
- <CommandItem type="command" onSelect={() => setPages([...pages, 'projects'])}>
- Search projects…
- </CommandItem>
- <CommandItem type="command" onSelect={() => setPages([...pages, 'teams'])}>
- Join a team…
- </CommandItem>
- </>
- )}
-
- {currentPage === 'projects' && (
- <>
- <CommandItem type="link">Project B</CommandItem>
- </>
- )}
-
- {currentPage === 'teams' && (
- <>
- <CommandItem type="link">Team 1</CommandItem>
- <CommandItem type="link">Team 2</CommandItem>
- </>
- )}
- </CommandList>
- {/* {dashboardItems.tools.items.map((item) => (
- <CommandItem key={item.url} type="link" onSelect={() => router.push(item.url)}>
- <IconArrowRight className="text-scale-900" />
- <CommandLabel>
- Go to <span className="font-bold"> {item.label}</span>
- </CommandLabel>
- </CommandItem>
- ))} */}
- </CommandGroup>
- )
-}