refactor: consolidate admin authorization into layout and introduce AdminShell component

This commit is contained in:
2026-06-30 22:56:25 +07:00 Unverified
parent 848f93641f
commit e2f480af62
12 changed files with 444 additions and 99 deletions
+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/actions/form";
import { deleteForm } from "@/app/admin/form/actions";
import { deleteSubmission, deleteAllSubmissions } from "@/app/actions/submissions";
import { toast } from "sonner";
import { useRouter } from "next/navigation";