Skip to content

Commit 70488ac

Browse files
samejrericallam
authored andcommitted
Allow className override
1 parent a24a139 commit 70488ac

1 file changed

Lines changed: 12 additions & 2 deletions

File tree

apps/webapp/app/components/layout/AppLayout.tsx

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,18 @@ export function MainBody({ children }: { children: React.ReactNode }) {
2020
}
2121

2222
/** This container should be placed around the content on a page */
23-
export function PageContainer({ children }: { children: React.ReactNode }) {
24-
return <div className="grid h-full grid-rows-[auto_1fr] overflow-hidden">{children}</div>;
23+
export function PageContainer({
24+
children,
25+
className,
26+
}: {
27+
children: React.ReactNode;
28+
className?: string;
29+
}) {
30+
return (
31+
<div className={cn("grid h-full grid-rows-[auto_1fr] overflow-hidden", className)}>
32+
{children}
33+
</div>
34+
);
2535
}
2636

2737
export function PageBody({

0 commit comments

Comments
 (0)