251211:1314 Frontend: reeactor Admin panel
Some checks failed
Spec Validation / validate-markdown (push) Has been cancelled
Spec Validation / validate-diagrams (push) Has been cancelled
Spec Validation / check-todos (push) Has been cancelled

This commit is contained in:
admin
2025-12-11 13:14:15 +07:00
parent c8a0f281ef
commit 3fa28bd14f
79 changed files with 6571 additions and 206 deletions

View File

@@ -7,10 +7,11 @@ import { Loader2 } from "lucide-react";
interface DrawingListProps {
type: "CONTRACT" | "SHOP";
projectId?: number;
}
export function DrawingList({ type }: DrawingListProps) {
const { data: drawings, isLoading, isError } = useDrawings(type, { projectId: 1 });
export function DrawingList({ type, projectId }: DrawingListProps) {
const { data: drawings, isLoading, isError } = useDrawings(type, { projectId: projectId ?? 1 });
// Note: The hook handles switching services based on type.
// The params { type } might be redundant if getAll doesn't use it, but safe to pass.