mirror of
https://github.com/supabase/supabase.git
synced 2026-10-08 19:05:06 +03:00
* init PrePostTab component * init * support auto fixing rounded of inputs/select/textarea * remove form item layout prepost * Update FormLayout.tsx * Update FormLayout.tsx * Update FormLayout.tsx * form layout and advanced * Update advanced.tsx * protection and hooks * auth emails * preview styles * fix * parse --------- Co-authored-by: Jonathan Summers-Muir <MildTomato@users.noreply.github.com>
40 lines
916 B
TypeScript
40 lines
916 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 AuthEmailsLayoutProps {
|
|
children: ReactNode
|
|
}
|
|
|
|
export const AuthEmailsLayout = ({ children }: AuthEmailsLayoutProps) => {
|
|
const { ref } = useParams()
|
|
|
|
const navItems = [
|
|
{
|
|
label: 'Templates',
|
|
href: `/project/${ref}/auth/templates`,
|
|
},
|
|
{
|
|
label: 'SMTP Settings',
|
|
href: `/project/${ref}/auth/smtp`,
|
|
},
|
|
]
|
|
|
|
return (
|
|
<DefaultLayout>
|
|
<AuthLayout>
|
|
<PageLayout
|
|
title="Emails"
|
|
subtitle="Configure what emails your users receive and how they are sent"
|
|
navigationItems={navItems}
|
|
>
|
|
{children}
|
|
</PageLayout>
|
|
</AuthLayout>
|
|
</DefaultLayout>
|
|
)
|
|
}
|