mirror of
https://github.com/supabase/supabase.git
synced 2026-10-05 17:35:10 +03:00
* fix: additional fixes for api keys, jwt signing keys * Smol fix * fix issue with screen * Fix success handler for migrate JWT secret * Tiny * text fix --------- Co-authored-by: Joshen Lim <joshenlimek@gmail.com>
37 lines
948 B
TypeScript
37 lines
948 B
TypeScript
import { PageLayout } from 'components/layouts/PageLayout/PageLayout'
|
|
import { ScaffoldContainer } from 'components/layouts/Scaffold'
|
|
import { PropsWithChildren } from 'react'
|
|
|
|
import { useParams } from 'common'
|
|
|
|
const ApiKeysLayout = ({ children }: PropsWithChildren) => {
|
|
const { ref: projectRef } = useParams()
|
|
|
|
const navigationItems = [
|
|
{
|
|
label: 'Legacy API Keys',
|
|
href: `/project/${projectRef}/settings/api-keys`,
|
|
id: 'legacy-keys',
|
|
},
|
|
{
|
|
label: 'API Keys',
|
|
href: `/project/${projectRef}/settings/api-keys/new`,
|
|
id: 'new-keys',
|
|
},
|
|
]
|
|
|
|
return (
|
|
<PageLayout
|
|
title="API Keys"
|
|
subtitle="Configure API keys to securely control access to your project"
|
|
navigationItems={navigationItems}
|
|
>
|
|
<ScaffoldContainer className="flex flex-col py-8 gap-8" bottomPadding>
|
|
{children}
|
|
</ScaffoldContainer>
|
|
</PageLayout>
|
|
)
|
|
}
|
|
|
|
export default ApiKeysLayout
|