mirror of
https://github.com/supabase/supabase.git
synced 2026-07-02 04:54:28 +08:00
* page components * page component changes * settings but broken saving * rvert * use sheet for provider * styling * remove things * Some refactoring and fixing, added JSDocs to layouts * Smol refactor * Fix * Update JSDocs * updated scaffolding * update edge functions layout * remove params * single function layout * invocation cleanup * remove vars * Clean up * Spelling * Clean up FormFieldWrappers * One last clean up * fix merge errors * fix merge errors * rmeove import * Address comments * Remove unnecessary prop * Remove settings/functions and add redirects in next config * fix empty * Fix key prop issue and fix selected state in layout for single edge function * Clean up edge function details * Use zodResolver * Refactor file name * Remove unnecessary fragment * Small refactors * Refactor deleting edge function to use ConfirmationModal * edge details fixes * Small adjustment to paddings --------- Co-authored-by: Joshen Lim <joshenlimek@gmail.com>
23 lines
629 B
TypeScript
23 lines
629 B
TypeScript
import { useParams } from 'common'
|
|
import { COMMAND_MENU_SECTIONS } from 'components/interfaces/App/CommandMenu/CommandMenu.utils'
|
|
import type { CommandOptions } from 'ui-patterns/CommandMenu'
|
|
import { useRegisterCommands } from 'ui-patterns/CommandMenu'
|
|
|
|
export function useFunctionsGotoCommands(options?: CommandOptions) {
|
|
let { ref } = useParams()
|
|
ref ||= '_'
|
|
|
|
useRegisterCommands(
|
|
COMMAND_MENU_SECTIONS.NAVIGATE,
|
|
[
|
|
{
|
|
id: 'nav-functions',
|
|
name: 'Edge Functions',
|
|
route: `/project/${ref}/functions`,
|
|
defaultHidden: true,
|
|
},
|
|
],
|
|
{ ...options, deps: [ref] }
|
|
)
|
|
}
|