From ddefbbbbff9b29edb1a9c399de48150f5c836094 Mon Sep 17 00:00:00 2001 From: amaliadwiy Date: Tue, 11 Nov 2025 11:00:54 +0800 Subject: [PATCH 1/5] update: dashboard admin Deskripsi: - tampilan detail pengaduan No Issues --- .../scr/dashboard/pengaduan/detail_page.tsx | 258 ++++++++++-------- 1 file changed, 151 insertions(+), 107 deletions(-) diff --git a/src/pages/scr/dashboard/pengaduan/detail_page.tsx b/src/pages/scr/dashboard/pengaduan/detail_page.tsx index a5051fd..11fb9a1 100644 --- a/src/pages/scr/dashboard/pengaduan/detail_page.tsx +++ b/src/pages/scr/dashboard/pengaduan/detail_page.tsx @@ -2,18 +2,21 @@ import apiFetch from "@/lib/apiFetch"; import { Anchor, Badge, + Button, Card, Container, Divider, Flex, Grid, Group, + Modal, Stack, Table, Text, + Textarea, Title } from "@mantine/core"; -import { useShallowEffect } from "@mantine/hooks"; +import { useDisclosure, useShallowEffect } from "@mantine/hooks"; import { IconAlignJustified, IconCategory, @@ -51,115 +54,156 @@ export default function DetailPengaduanPage() { } function DetailDataPengaduan() { + const [opened, { open, close }] = useDisclosure(false); + const [catModal, setCatModal] = useState<'tolak' | 'terima'>('tolak'); + return ( - - - - - - Pengaduan - - - #PGf-2345-33 - - - - antrian - - - - - - - - - - - Judul + <> + + + { + catModal === 'tolak' + ? ( + <> + Anda yakin ingin menolak pengaduan ini? Berikan alasan penolakan + +