index.tsx19 lines · main
| 1 | import { PlatformWebhooksPage } from '@/components/interfaces/Platform/Webhooks' |
| 2 | import { DefaultLayout } from '@/components/layouts/DefaultLayout' |
| 3 | import OrganizationLayout from '@/components/layouts/OrganizationLayout' |
| 4 | import { OrganizationSettingsLayout } from '@/components/layouts/ProjectLayout/OrganizationSettingsLayout' |
| 5 | import type { NextPageWithLayout } from '@/types' |
| 6 | |
| 7 | const OrgWebhooksSettings: NextPageWithLayout = () => { |
| 8 | return <PlatformWebhooksPage scope="organization" /> |
| 9 | } |
| 10 | |
| 11 | OrgWebhooksSettings.getLayout = (page) => ( |
| 12 | <DefaultLayout> |
| 13 | <OrganizationLayout title="Webhooks"> |
| 14 | <OrganizationSettingsLayout>{page}</OrganizationSettingsLayout> |
| 15 | </OrganizationLayout> |
| 16 | </DefaultLayout> |
| 17 | ) |
| 18 | |
| 19 | export default OrgWebhooksSettings |