mirror of
https://github.com/supabase/supabase.git
synced 2026-10-16 14:49:10 +03:00
added className prop to SettingsLayout
This commit is contained in:
1 parent
c9aa462799
commit
aa3edc8e48
1 file changed
+3
-2
@@ -9,10 +9,11 @@ import { useRouter } from 'next/router'
|
||||
|
||||
interface Props {
|
||||
title?: string
|
||||
className?: string
|
||||
children: ReactNode
|
||||
}
|
||||
|
||||
const SettingsLayout: FC<Props> = ({ title, children }) => {
|
||||
const SettingsLayout: FC<Props> = ({ title, className = "", children }) => {
|
||||
const { ui } = useStore()
|
||||
const projectRef = ui.selectedProject?.ref ?? 'default'
|
||||
|
||||
@@ -25,7 +26,7 @@ const SettingsLayout: FC<Props> = ({ title, children }) => {
|
||||
product="Settings"
|
||||
productMenu={<ProductMenu page={page} menu={generateSettingsMenu(projectRef)} />}
|
||||
>
|
||||
<main style={{ maxHeight: '100vh' }} className="flex-1 overflow-y-auto">
|
||||
<main style={{ maxHeight: '100vh' }} className={"flex-1 overflow-y-auto " + className}>
|
||||
{children}
|
||||
</main>
|
||||
</BaseLayout>
|
||||
|
||||
Reference in new issue
Block a user