mirror of
https://github.com/supabase/supabase.git
synced 2026-10-07 18:35:07 +03: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>
29 lines
1.5 KiB
TypeScript
29 lines
1.5 KiB
TypeScript
import { useIsLoggedIn } from 'common'
|
|
import { useApiDocsGotoCommands } from 'components/interfaces/ProjectAPIDocs/ProjectAPIDocs.Commands'
|
|
import { useAdvisorsGoToCommands } from './AdvisorsLayout/Advisors.Commands'
|
|
import { useAuthGotoCommands } from './AuthLayout/Auth.Commands'
|
|
import { useDatabaseGotoCommands } from './DatabaseLayout/Database.Commands'
|
|
import { useFunctionsGotoCommands } from './EdgeFunctionsLayout/EdgeFunctions.Commands'
|
|
import { useLogsGotoCommands } from './LogsLayout/Logs.Commands'
|
|
import { useProjectSettingsGotoCommands } from './ProjectSettingsLayout/ProjectSettings.Commands'
|
|
import { useReportsGotoCommands } from './ReportsLayout/Reports.Commands'
|
|
import { useSqlEditorGotoCommands } from './SQLEditorLayout/SqlEditor.Commands'
|
|
import { useStorageGotoCommands } from './StorageLayout/Storage.Commands'
|
|
import { useTableEditorGotoCommands } from './TableEditorLayout/TableEditor.Commands'
|
|
|
|
export function useLayoutNavCommands() {
|
|
const isLoggedIn = useIsLoggedIn()
|
|
|
|
useTableEditorGotoCommands({ enabled: isLoggedIn })
|
|
useSqlEditorGotoCommands({ enabled: isLoggedIn })
|
|
useDatabaseGotoCommands({ enabled: isLoggedIn })
|
|
useAuthGotoCommands({ enabled: isLoggedIn })
|
|
useAdvisorsGoToCommands({ enabled: isLoggedIn })
|
|
useStorageGotoCommands({ enabled: isLoggedIn })
|
|
useFunctionsGotoCommands({ enabled: isLoggedIn })
|
|
useLogsGotoCommands({ enabled: isLoggedIn })
|
|
useReportsGotoCommands({ enabled: isLoggedIn })
|
|
useApiDocsGotoCommands({ enabled: isLoggedIn })
|
|
useProjectSettingsGotoCommands({ enabled: isLoggedIn })
|
|
}
|