feat : update

This commit is contained in:
2026-08-27 14:11:20 +00:00 Unverified
parent eee932259f
commit 992d3f94f9
61 changed files with 76 additions and 55 deletions
+6 -2
View File
@@ -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>
+1 -1
View File
@@ -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";