mirror of
https://github.com/supabase/supabase.git
synced 2026-12-05 16:09:06 +00:00
## Context Just some housekeeping to move off old layout components - this PR targets Auth and Settings pages, specifically - Auth -> Emails - Auth -> Providers - Settings -> API Keys - Settings -> JWT Keys - Settings -> Log Drains - Settings -> Read Replica/id The only visual change is just that navigation tabs take the full width of the viewport now Just need to make sure that these pages still render fine
37 lines
1.0 KiB
TypeScript
37 lines
1.0 KiB
TypeScript
import { PropsWithChildren } from 'react'
|
|
import { PageContainer } from 'ui-patterns/PageContainer'
|
|
import {
|
|
PageHeader,
|
|
PageHeaderAside,
|
|
PageHeaderDescription,
|
|
PageHeaderMeta,
|
|
PageHeaderSummary,
|
|
PageHeaderTitle,
|
|
} from 'ui-patterns/PageHeader'
|
|
|
|
import { DocsButton } from '@/components/ui/DocsButton'
|
|
import { DOCS_URL } from '@/lib/constants'
|
|
|
|
const ApiKeysLayout = ({ children }: PropsWithChildren) => {
|
|
return (
|
|
<>
|
|
<PageHeader>
|
|
<PageHeaderMeta>
|
|
<PageHeaderSummary>
|
|
<PageHeaderTitle>API Keys</PageHeaderTitle>
|
|
<PageHeaderDescription>
|
|
Configure API keys to securely control access to your project
|
|
</PageHeaderDescription>
|
|
</PageHeaderSummary>
|
|
<PageHeaderAside>
|
|
<DocsButton href={`${DOCS_URL}/guides/api/api-keys`} />
|
|
</PageHeaderAside>
|
|
</PageHeaderMeta>
|
|
</PageHeader>
|
|
<PageContainer className="flex flex-col py-8 pb-16 gap-8">{children}</PageContainer>
|
|
</>
|
|
)
|
|
}
|
|
|
|
export default ApiKeysLayout
|