Add account hierarchy framework with migrations, RLS policies, and UI components
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import type { ReactNode } from 'react';
|
||||
|
||||
import { PageBody } from '@kit/ui/page';
|
||||
import { AppBreadcrumbs } from '@kit/ui/app-breadcrumbs';
|
||||
import { PageBody } from '@kit/ui/page';
|
||||
|
||||
import { TeamAccountLayoutPageHeader } from '~/home/[account]/_components/team-account-layout-page-header';
|
||||
|
||||
@@ -16,7 +16,12 @@ interface CmsPageShellProps {
|
||||
* Shared CMS page shell — wraps PageBody + header + breadcrumbs.
|
||||
* Use in every CMS feature page to maintain consistent layout.
|
||||
*/
|
||||
export function CmsPageShell({ account, title, description, children }: CmsPageShellProps) {
|
||||
export function CmsPageShell({
|
||||
account,
|
||||
title,
|
||||
description,
|
||||
children,
|
||||
}: CmsPageShellProps) {
|
||||
return (
|
||||
<>
|
||||
<TeamAccountLayoutPageHeader
|
||||
@@ -25,9 +30,7 @@ export function CmsPageShell({ account, title, description, children }: CmsPageS
|
||||
description={description ?? <AppBreadcrumbs />}
|
||||
/>
|
||||
|
||||
<PageBody>
|
||||
{children}
|
||||
</PageBody>
|
||||
<PageBody>{children}</PageBody>
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user