Files
supabase/apps/studio/components/layouts/AuthLayout/AuthProvidersLayout.tsx
Joshen LimandSaxon Fletcher 32a042379e Auth Settings IA Update - Sign In / Up (#33579)
* 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>
2025-02-21 16:09:50 +08:00

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>
)
}