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} +