upd: api jenna ai

Deskripsi:
- detail post pengaduan
- detail post pengajuan surat

No Issues
This commit is contained in:
2025-12-11 17:05:53 +08:00
parent 91e5f6a77e
commit c797d1fc46
4 changed files with 323 additions and 41 deletions

View File

@@ -44,7 +44,7 @@ export default function DetailPengaduanPage() {
const { data, mutate, isLoading } = useSwr("/", () =>
apiFetch.api.pengaduan.detail.get({
query: {
nomerPengaduan: id!,
id: id!,
},
}),
);
@@ -70,7 +70,7 @@ export default function DetailPengaduanPage() {
);
}
function DetailDataPengaduan({ data, onAction }: { data: any, onAction: () => void }) {
function DetailDataPengaduan({ data, onAction }: { data: any | null, onAction: () => void }) {
const [opened, { open, close }] = useDisclosure(false);
const [catModal, setCatModal] = useState<"tolak" | "terima">("tolak");
const [openedPreview, setOpenedPreview] = useState(false);