diff --git a/apps/dashboard/src/@/components/blocks/SidebarLayout.tsx b/apps/dashboard/src/@/components/blocks/SidebarLayout.tsx index 6294dcf04be..cc5bba9f020 100644 --- a/apps/dashboard/src/@/components/blocks/SidebarLayout.tsx +++ b/apps/dashboard/src/@/components/blocks/SidebarLayout.tsx @@ -17,6 +17,7 @@ import { NavLink } from "../ui/NavLink"; import { Separator } from "../ui/separator"; import { MobileSidebar, useActiveSidebarLink } from "./MobileSidebar"; import { CustomSidebar, type SidebarLink } from "./Sidebar"; +import { AppFooter } from "./app-footer"; export function SidebarLayout(props: { sidebarLinks: SidebarLink[]; @@ -54,7 +55,6 @@ export function FullWidthSidebarLayout(props: { footerSidebarLinks?: SidebarLink[]; children: React.ReactNode; className?: string; - footer?: React.ReactNode; }) { const { contentSidebarLinks, children, footerSidebarLinks } = props; return ( @@ -65,7 +65,7 @@ export function FullWidthSidebarLayout(props: { )} > {/* left - sidebar */} - + @@ -95,10 +95,10 @@ export function FullWidthSidebarLayout(props: { links={[...contentSidebarLinks, ...(footerSidebarLinks || [])]} /> -
+
{children}
- {props.footer} + ); @@ -156,7 +156,7 @@ function MobileSidebarTrigger(props: { links: SidebarLink[] }) { const activeLink = useActiveSidebarLink(props.links); return ( -
+
{activeLink && {activeLink.label}} diff --git a/apps/dashboard/src/@/components/blocks/app-footer.tsx b/apps/dashboard/src/@/components/blocks/app-footer.tsx index 39cf386ede9..5f104b6d774 100644 --- a/apps/dashboard/src/@/components/blocks/app-footer.tsx +++ b/apps/dashboard/src/@/components/blocks/app-footer.tsx @@ -12,17 +12,23 @@ import Link from "next/link"; type AppFooterProps = { className?: string; + containerClassName?: string; }; export function AppFooter(props: AppFooterProps) { return (