mirror of
https://github.com/supabase/supabase.git
synced 2026-10-11 04:15:04 +03:00
* Advisor rules update for LW15 * Simplify UX to confirmation modal * Rename section to settings * fix * patchy * further simplify * Smol styling fix * Create + Delete lint rules to also invalidate lints
33 lines
908 B
TypeScript
33 lines
908 B
TypeScript
import { PropsWithChildren } from 'react'
|
|
|
|
import { useParams } from 'common'
|
|
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>
|
|
)
|
|
}
|