mirror of
https://github.com/supabase/supabase.git
synced 2026-10-15 22:29:11 +03:00
* Scaffold advisor rules * Wrap up implementation * Add feature flag * Fix type issues * Fix types * fix * Scaffold * Revise UI for advisor rules * Hide edit button * Refactor AdvisorRulesLayout * Some fixes from PR feedback
33 lines
947 B
TypeScript
33 lines
947 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 Rules"
|
|
subtitle="Disable specific advisor categories or rules, or assign them to members for resolution"
|
|
navigationItems={[
|
|
{
|
|
label: 'Security',
|
|
href: `/project/${ref}/advisors/rules/security`,
|
|
},
|
|
{
|
|
label: 'Performance',
|
|
href: `/project/${ref}/advisors/rules/performance`,
|
|
},
|
|
]}
|
|
>
|
|
{children}
|
|
</PageLayout>
|
|
</AdvisorsLayout>
|
|
</DefaultLayout>
|
|
)
|
|
}
|