feat: add SidebarTrigger to mobile view in form admin layout
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import { getServerSession } from "next-auth";
|
||||
import { authOptions } from "@/app/api/auth/[...nextauth]/route";
|
||||
import { redirect } from "next/navigation";
|
||||
import { SidebarProvider } from "@/components/ui/sidebar";
|
||||
import { SidebarProvider, SidebarTrigger } from "@/components/ui/sidebar";
|
||||
import { AdminSidebar } from "./client";
|
||||
import { Metadata } from "next";
|
||||
|
||||
@@ -35,9 +35,12 @@ export default async function AdminFormLayout(
|
||||
<div className="flex w-full bg-background text-foreground dark">
|
||||
<AdminSidebar formId={params.id} />
|
||||
<div className="flex-1 overflow-hidden">
|
||||
<div className="md:hidden p-2">
|
||||
<SidebarTrigger />
|
||||
</div>
|
||||
{props.children}
|
||||
</div>
|
||||
</div>
|
||||
</SidebarProvider>
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user