mirror of
https://github.com/supabase/supabase.git
synced 2026-07-01 01:25:54 +08:00
Fix missing default layout for api keys page (#34429)
This commit is contained in:
@@ -4,6 +4,7 @@ import { useParams } from 'common'
|
||||
import LegacyAPIKeys from 'components/interfaces/APIKeys/LegacyAPIKeys'
|
||||
import { PublishableAPIKeys } from 'components/interfaces/APIKeys/PublishableAPIKeys'
|
||||
import { SecretAPIKeys } from 'components/interfaces/APIKeys/SecretAPIKeys'
|
||||
import DefaultLayout from 'components/layouts/DefaultLayout'
|
||||
import ApiKeysLayout from 'components/layouts/project/[ref]/settings/APIKeysLayout'
|
||||
import SettingsLayout from 'components/layouts/ProjectSettingsLayout/SettingsLayout'
|
||||
import { useCheckPermissions } from 'hooks/misc/useCheckPermissions'
|
||||
@@ -39,9 +40,11 @@ const ApiKeysSettings: NextPageWithLayout = () => {
|
||||
}
|
||||
|
||||
ApiKeysSettings.getLayout = (page) => (
|
||||
<SettingsLayout>
|
||||
<ApiKeysLayout>{page}</ApiKeysLayout>
|
||||
</SettingsLayout>
|
||||
<DefaultLayout>
|
||||
<SettingsLayout>
|
||||
<ApiKeysLayout>{page}</ApiKeysLayout>
|
||||
</SettingsLayout>
|
||||
</DefaultLayout>
|
||||
)
|
||||
|
||||
export default ApiKeysSettings
|
||||
|
||||
Reference in New Issue
Block a user