check details base
This commit is contained in:
1 parent
d139e0b643
commit
66c406151a
9 files changed
+112
-47
No files matched your search
@@ -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;
|
||||
Reference in new issue
Block a user