check details base

This commit is contained in:
Alex Holliday committed 2025-12-19 15:12:30 -08:00
1 parent d139e0b643
commit 66c406151a
9 files changed
+112 -47

No files matched your search

+21
View File
@@ -0,0 +1,21 @@
import { BasePage } from "@/components/design-elements";
import { useParams } from "react-router";
import { useGet } from "@/hooks/UseApi";
import type { ICheck } from "@/types/check";
import type { ApiResponse } from "@/types/api";
const CheckDetails = () => {
const { id } = useParams();
const { response, loading, error } = useGet<ApiResponse<ICheck>>(
`/checks/${id}`
);
const check = response?.data;
return (
<BasePage loading={loading} error={error}>
{JSON.stringify(check)}
</BasePage>
);
};
export default CheckDetails;