mirror of
https://github.com/supabase/supabase.git
synced 2026-10-08 02:45:07 +03:00
update page
This commit is contained in:
1 parent
a0a5427bd8
commit
6507ea2987
4 files changed
+1164
-1167
No files matched your search
@@ -10,7 +10,6 @@ export const generateAuthMenu = (ref: string): ProductMenuGroup[] => {
|
||||
items: [
|
||||
{ name: 'Users', key: 'users', url: `/project/${ref}/auth/users`, items: [] },
|
||||
{ name: 'Policies', key: 'policies', url: `/project/${ref}/auth/policies`, items: [] },
|
||||
{ name: 'Templates', key: 'templates', url: `/project/${ref}/auth/templates`, items: [] },
|
||||
...(IS_PLATFORM && logsAuth
|
||||
? [
|
||||
{
|
||||
@@ -28,18 +27,16 @@ export const generateAuthMenu = (ref: string): ProductMenuGroup[] => {
|
||||
{
|
||||
title: 'Configuration',
|
||||
items: [
|
||||
{
|
||||
name: 'Settings',
|
||||
key: 'settings',
|
||||
url: `/project/${ref}/auth/settings`,
|
||||
items: [],
|
||||
},
|
||||
{
|
||||
name: 'Settings new',
|
||||
key: 'settings-new',
|
||||
url: `/project/${ref}/auth/settings-new`,
|
||||
items: [],
|
||||
},
|
||||
...(IS_PLATFORM && logsAuth
|
||||
? [
|
||||
{
|
||||
name: 'Settings',
|
||||
key: 'settings',
|
||||
url: `/project/${ref}/auth/settings`,
|
||||
items: [],
|
||||
},
|
||||
]
|
||||
: []),
|
||||
{
|
||||
name: 'Templates',
|
||||
key: 'settings-templates',
|
||||
|
||||
@@ -1,32 +0,0 @@
|
||||
import { AuthProvidersForm } from 'components/interfaces'
|
||||
import RedirectDomains from 'components/interfaces/Auth/RedirectDomains'
|
||||
import { AuthLayout } from 'components/layouts'
|
||||
import { AutoSchemaForm, FormsContainer } from 'components/ui/Forms'
|
||||
import { useStore } from 'hooks'
|
||||
import { observer } from 'mobx-react-lite'
|
||||
import React, { useEffect } from 'react'
|
||||
import { NextPageWithLayout } from 'types'
|
||||
|
||||
const PageLayout: NextPageWithLayout = () => {
|
||||
const { ui, authConfig } = useStore()
|
||||
|
||||
useEffect(() => {
|
||||
// temporary store loader
|
||||
authConfig.load()
|
||||
}, [ui.selectedProjectRef])
|
||||
|
||||
if (authConfig)
|
||||
return (
|
||||
<FormsContainer>
|
||||
<AutoSchemaForm />
|
||||
<RedirectDomains />
|
||||
<AuthProvidersForm />
|
||||
</FormsContainer>
|
||||
)
|
||||
}
|
||||
|
||||
PageLayout.getLayout = (page) => {
|
||||
return <AuthLayout>{page}</AuthLayout>
|
||||
}
|
||||
|
||||
export default observer(PageLayout)
|
||||
File diff suppressed because it is too large.
Load diff
File diff suppressed because it is too large.
Load diff
Reference in new issue
Block a user