mirror of
https://github.com/supabase/supabase.git
synced 2026-10-16 22:59:11 +03:00
* page components * page component changes * settings but broken saving * rvert * use sheet for provider * styling * remove things * Some refactoring and fixing, added JSDocs to layouts * Smol refactor * Fix * Update JSDocs * updated scaffolding * Clean up * Spelling * Clean up FormFieldWrappers * One last clean up * Smol CSS tweak --------- Co-authored-by: Saxon Fletcher <saxonafletcher@gmail.com>
40 lines
950 B
TypeScript
40 lines
950 B
TypeScript
import { ReactNode } from 'react'
|
|
|
|
import { useParams } from 'common'
|
|
import DefaultLayout from 'components/layouts/DefaultLayout'
|
|
import { PageLayout } from 'components/layouts/PageLayout/PageLayout'
|
|
import AuthLayout from './AuthLayout'
|
|
|
|
interface AuthProvidersLayoutProps {
|
|
children: ReactNode
|
|
}
|
|
|
|
export const AuthProvidersLayout = ({ children }: AuthProvidersLayoutProps) => {
|
|
const { ref } = useParams()
|
|
|
|
const navItems = [
|
|
{
|
|
label: 'Supabase Auth',
|
|
href: `/project/${ref}/auth/providers`,
|
|
},
|
|
{
|
|
label: 'Third Party Auth',
|
|
href: `/project/${ref}/auth/third-party`,
|
|
},
|
|
]
|
|
|
|
return (
|
|
<DefaultLayout>
|
|
<AuthLayout>
|
|
<PageLayout
|
|
title="Sign In / Up"
|
|
subtitle="Configure authentication providers and login methods for your users"
|
|
navigationItems={navItems}
|
|
>
|
|
{children}
|
|
</PageLayout>
|
|
</AuthLayout>
|
|
</DefaultLayout>
|
|
)
|
|
}
|