feat : update
This commit is contained in:
@@ -99,9 +99,13 @@ export function AdminShell({
|
||||
}) {
|
||||
const pathname = usePathname();
|
||||
|
||||
if (/^\/admin\/form\/[^/]+/.test(pathname)) {
|
||||
return children;
|
||||
}
|
||||
|
||||
return (
|
||||
<SidebarProvider>
|
||||
<div className="flex min-h-screen w-full bg-background text-foreground">
|
||||
<div className="flex min-h-svh w-full bg-transparent text-foreground">
|
||||
<Sidebar variant="sidebar" collapsible="icon">
|
||||
<SidebarHeader className="border-b border-border py-4 px-4">
|
||||
<Link href="/admin">
|
||||
@@ -157,7 +161,7 @@ export function AdminShell({
|
||||
</SidebarContent>
|
||||
</Sidebar>
|
||||
|
||||
<SidebarInset>
|
||||
<SidebarInset className="bg-transparent">
|
||||
<div className="md:hidden p-2">
|
||||
<SidebarTrigger />
|
||||
</div>
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
import { useState } from "react";
|
||||
import { Button } from "@/components/ui/button";
|
||||
import { Trash2, Loader2 } from "lucide-react";
|
||||
import { deleteForm } from "@/app/admin/form/actions";
|
||||
import { deleteForm } from "@/app/(ui)/admin/form/actions";
|
||||
import { deleteSubmission, deleteAllSubmissions } from "@/app/actions/submissions";
|
||||
import { toast } from "sonner";
|
||||
import { useRouter } from "next/navigation";
|
||||
|
||||
Reference in New Issue
Block a user