refactor: add custom banner and refactor pagelayout to include it (#3803)
* Added custom banner * Refactored pageLayout to include custom banner
This commit is contained in:
parent
35c194e575
commit
56802bada6
2 changed files with 19 additions and 12 deletions
|
|
@ -1,3 +1,4 @@
|
||||||
|
import { CustomBanner } from "@/customization/components/custom-banner";
|
||||||
import { Separator } from "../ui/separator";
|
import { Separator } from "../ui/separator";
|
||||||
|
|
||||||
export default function PageLayout({
|
export default function PageLayout({
|
||||||
|
|
@ -14,8 +15,10 @@ export default function PageLayout({
|
||||||
betaIcon?: boolean;
|
betaIcon?: boolean;
|
||||||
}) {
|
}) {
|
||||||
return (
|
return (
|
||||||
<div className="flex h-full w-full flex-col justify-between overflow-auto bg-background px-16">
|
<div className="flex h-full w-full flex-col justify-between overflow-auto bg-background px-16 pt-6">
|
||||||
<div className="flex w-full items-center justify-between gap-4 space-y-0.5 py-8 pb-2">
|
<div className="flex flex-col gap-4">
|
||||||
|
<CustomBanner />
|
||||||
|
<div className="flex w-full items-center justify-between gap-4 space-y-0.5 py-2">
|
||||||
<div className="flex w-full flex-col">
|
<div className="flex w-full flex-col">
|
||||||
<h2
|
<h2
|
||||||
className="text-2xl font-bold tracking-tight"
|
className="text-2xl font-bold tracking-tight"
|
||||||
|
|
@ -28,6 +31,7 @@ export default function PageLayout({
|
||||||
</div>
|
</div>
|
||||||
<div className="flex-shrink-0">{button && button}</div>
|
<div className="flex-shrink-0">{button && button}</div>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
<Separator className="my-6 flex" />
|
<Separator className="my-6 flex" />
|
||||||
{children}
|
{children}
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,3 @@
|
||||||
|
export function CustomBanner() {
|
||||||
|
return <></>;
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue