251205:0000 Just start debug backend/frontend
This commit is contained in:
22
frontend/app/(dashboard)/rfas/[id]/page.tsx
Normal file
22
frontend/app/(dashboard)/rfas/[id]/page.tsx
Normal file
@@ -0,0 +1,22 @@
|
||||
import { rfaApi } from "@/lib/api/rfas";
|
||||
import { RFADetail } from "@/components/rfas/detail";
|
||||
import { notFound } from "next/navigation";
|
||||
|
||||
export default async function RFADetailPage({
|
||||
params,
|
||||
}: {
|
||||
params: { id: string };
|
||||
}) {
|
||||
const id = parseInt(params.id);
|
||||
if (isNaN(id)) {
|
||||
notFound();
|
||||
}
|
||||
|
||||
const rfa = await rfaApi.getById(id);
|
||||
|
||||
if (!rfa) {
|
||||
notFound();
|
||||
}
|
||||
|
||||
return <RFADetail data={rfa} />;
|
||||
}
|
||||
Reference in New Issue
Block a user