diff --git a/pkgs/luxdefi-ui/common/header/index.tsx b/pkgs/luxdefi-ui/common/header/index.tsx index efcbe244..a7ecceaa 100644 --- a/pkgs/luxdefi-ui/common/header/index.tsx +++ b/pkgs/luxdefi-ui/common/header/index.tsx @@ -6,12 +6,16 @@ import { type ButtonVariants, LinkElement, DrawerMenu } from '../../primitives' import { NavItems, Icons } from '../../common' import MobileNav from './mobile-nav' +import { cn } from '../../util' + const Header: React.FC<{ siteDef: SiteDef + className?: string }> = ({ - siteDef + siteDef, + className = '' }) => ( -
+
diff --git a/pkgs/luxdefi-ui/next/root-layout.tsx b/pkgs/luxdefi-ui/next/root-layout.tsx index 240efad3..b236eae7 100644 --- a/pkgs/luxdefi-ui/next/root-layout.tsx +++ b/pkgs/luxdefi-ui/next/root-layout.tsx @@ -29,7 +29,11 @@ const viewport = { const bodyClasses = 'bg-background text-foreground ' + getAppRouterBodyFontClasses() -const RootLayout: React.FC = ({ +const RootLayout: React.FC = ({ + header = true, siteDef, children, }) => ( @@ -39,7 +43,7 @@ const RootLayout: React.FC = ({ -
+ {header &&
} {children} diff --git a/pkgs/luxdefi-ui/package.json b/pkgs/luxdefi-ui/package.json index 70527bb1..ffc80555 100644 --- a/pkgs/luxdefi-ui/package.json +++ b/pkgs/luxdefi-ui/package.json @@ -1,6 +1,6 @@ { "name": "@luxdefi/ui", - "version": "0.2.5", + "version": "0.2.6", "description": "Library that contains shared UI primitives, styles, and core types", "publishConfig": { "registry": "https://registry.npmjs.org/",