upd: dashboard admin
Deskripsi: - list user - tambah usr - delete user - beserta api NO Issues
This commit is contained in:
@@ -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 />
|
||||
)}
|
||||
|
||||
Reference in New Issue
Block a user