mirror of
https://github.com/supabase/supabase.git
synced 2026-10-12 12:55:06 +03:00
## I have read the [CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md) file. YES ## What kind of change does this PR introduce? This is the first step for the GA rollout --------- Co-authored-by: Joshen Lim <joshenlimek@gmail.com>
33 lines
908 B
TypeScript
33 lines
908 B
TypeScript
import { useParams } from 'common'
|
|
import { PropsWithChildren } from 'react'
|
|
|
|
import DefaultLayout from '../DefaultLayout'
|
|
import { PageLayout } from '../PageLayout/PageLayout'
|
|
import AdvisorsLayout from './AdvisorsLayout'
|
|
|
|
export const AdvisorRulesLayout = ({ children }: PropsWithChildren<{}>) => {
|
|
const { ref } = useParams()
|
|
return (
|
|
<DefaultLayout>
|
|
<AdvisorsLayout>
|
|
<PageLayout
|
|
title="Advisor Settings"
|
|
subtitle="Disable specific advisor categories or rules"
|
|
navigationItems={[
|
|
{
|
|
label: 'Security',
|
|
href: `/project/${ref}/advisors/rules/security`,
|
|
},
|
|
{
|
|
label: 'Performance',
|
|
href: `/project/${ref}/advisors/rules/performance`,
|
|
},
|
|
]}
|
|
>
|
|
{children}
|
|
</PageLayout>
|
|
</AdvisorsLayout>
|
|
</DefaultLayout>
|
|
)
|
|
}
|