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

@@ -51,11 +51,13 @@ const contractSchema = z.object({
type ContractFormData = z.infer<typeof contractSchema>;
import { contractService } from "@/lib/services/contract.service";
// Inline hooks for simplicity, or could move to hooks/use-master-data
const useContracts = (params?: any) => {
return useQuery({
queryKey: ['contracts', params],
queryFn: () => projectService.getAllContracts(params),
queryFn: () => contractService.getAll(params),
});
};