upd: dashboard admin

Deskripsi:
- list user
- tambah usr
- delete user

- beserta api

NO Issues
This commit is contained in:
2025-11-13 17:43:19 +08:00
parent cc293d3bad
commit 039524d092
3 changed files with 456 additions and 0 deletions

View File

@@ -1,6 +1,7 @@
import DesaSetting from "@/components/DesaSetting";
import KategoriPengaduan from "@/components/KategoriPengaduan";
import ProfileUser from "@/components/ProfileUser";
import UserSetting from "@/components/UserSetting";
import {
Button,
Card,
@@ -18,6 +19,7 @@ import {
IconCategory2,
IconMailSpark,
IconUserCog,
IconUsersGroup
} from "@tabler/icons-react";
import { useLocation } from "react-router-dom";
@@ -47,6 +49,12 @@ export default function DetailSettingPage() {
leftSection={<IconUserCog size={16} stroke={1.5} />}
active={type === "profile" || !type}
/>
<NavLink
href={`?type=user`}
label="User"
leftSection={<IconUsersGroup size={16} stroke={1.5} />}
active={type === "user"}
/>
<NavLink
href={`?type=cat-pengaduan`}
label="Kategori Pengaduan"
@@ -85,6 +93,8 @@ export default function DetailSettingPage() {
<KategoriPengaduanPage />
) : type === "desa" ? (
<DesaSetting />
) : type === "user" ? (
<UserSetting />
) : (
<ProfileUser />
)}