mirror of
https://github.com/supabase/supabase.git
synced 2026-10-14 13:49:09 +03:00
* Add flags for policies, third party auth, and manual linking + providers in sign in page * Add flag for rate limitm page * Add UnknownInterface components * Update comment * Flip flags to true * Add flags for realtime policies and reports page * Temp * Add flag for sign in providers page * Add flag for stripe wrapper * Add flag for custom domains * Add flag for dedicated ipv4 address addon * Add empty state for realtime policies * Add empty state for reports page * Add flag for disable legacy JWT keys section * Add flag for legacy jwt keys * nit * Remove ConnectionStringMoved call out * Add flag for project settings log drains * Add flag for subscription link in project settings * Deprecate settings/auth page and redirect directly to auth page * Flip back flags
43 lines
1.2 KiB
TypeScript
43 lines
1.2 KiB
TypeScript
import { PageLayout } from 'components/layouts/PageLayout/PageLayout'
|
|
import { ScaffoldContainer } from 'components/layouts/Scaffold'
|
|
import { PropsWithChildren } from 'react'
|
|
|
|
import { useParams } from 'common'
|
|
import { useIsFeatureEnabled } from 'hooks/misc/useIsFeatureEnabled'
|
|
|
|
const JWTKeysLayout = ({ children }: PropsWithChildren) => {
|
|
const { ref: projectRef } = useParams()
|
|
const { projectSettingsLegacyJwtKeys } = useIsFeatureEnabled(['project_settings:legacy_jwt_keys'])
|
|
|
|
const navigationItems = [
|
|
...(projectSettingsLegacyJwtKeys
|
|
? [
|
|
{
|
|
label: 'Legacy JWT Secret',
|
|
href: `/project/${projectRef}/settings/jwt`,
|
|
id: 'legacy-jwt-keys',
|
|
},
|
|
]
|
|
: []),
|
|
{
|
|
label: 'JWT Signing Keys',
|
|
href: `/project/${projectRef}/settings/jwt/signing-keys`,
|
|
id: 'signing-keys',
|
|
},
|
|
]
|
|
|
|
return (
|
|
<PageLayout
|
|
title="JWT Keys"
|
|
subtitle="Control the keys used to sign JSON Web Tokens for your project"
|
|
navigationItems={navigationItems}
|
|
>
|
|
<ScaffoldContainer className="flex flex-col py-8 gap-8" bottomPadding>
|
|
{children}
|
|
</ScaffoldContainer>
|
|
</PageLayout>
|
|
)
|
|
}
|
|
|
|
export default JWTKeysLayout
|