From eee8aadb1a64fd31922825f8edd029c936f87d39 Mon Sep 17 00:00:00 2001 From: amal Date: Mon, 1 Dec 2025 16:02:13 +0800 Subject: [PATCH] upd: list warga --- kirim.sh | 3 +++ .../scr/dashboard/warga/list_warga_page.tsx | 25 +++++++++++-------- 2 files changed, 18 insertions(+), 10 deletions(-) create mode 100644 kirim.sh diff --git a/kirim.sh b/kirim.sh new file mode 100644 index 0000000..e90d02b --- /dev/null +++ b/kirim.sh @@ -0,0 +1,3 @@ +curl -X POST https://cld-dkr-prod-jenna-mcp.wibudev.com/api/pengaduan/upload-file-form-data \ + -H "Accept: application/json" \ + -F "file=@image.png" diff --git a/src/pages/scr/dashboard/warga/list_warga_page.tsx b/src/pages/scr/dashboard/warga/list_warga_page.tsx index eb0772a..de61764 100644 --- a/src/pages/scr/dashboard/warga/list_warga_page.tsx +++ b/src/pages/scr/dashboard/warga/list_warga_page.tsx @@ -41,8 +41,13 @@ export default function ListWargaPage() { useShallowEffect(() => { + setPages(1); mutate(); - }, [value, pages]); + }, [value]); + + useShallowEffect(() => { + mutate(); + }, [pages]); return ( @@ -57,14 +62,10 @@ export default function ListWargaPage() { }} > + + List Data Warga + - - List Data Warga - - - {`Showing ${pageSize * (pages - 1) + 1} – ${Math.min(total, pageSize * pages)} of ${total}`} - - } /> + + {`${pageSize * (pages - 1) + 1} – ${Math.min(total, pageSize * pages)} of ${total}`} + + @@ -99,8 +104,8 @@ export default function ListWargaPage() { Array.isArray(list) && list?.map((item, i) => ( {item.name} - {item.phone} - + {item.phone} +