upd: dashboard admin

Deskripsi:
- databse
- seeder
- list user role

NO Issues
This commit is contained in:
2025-11-24 14:27:19 +08:00
parent c72ef5a755
commit 0a3afb7b9c
7 changed files with 798 additions and 16 deletions

View File

@@ -2,6 +2,7 @@ import DesaSetting from "@/components/DesaSetting";
import KategoriPelayananSurat from "@/components/KategoriPelayananSurat";
import KategoriPengaduan from "@/components/KategoriPengaduan";
import ProfileUser from "@/components/ProfileUser";
import UserRoleSetting from "@/components/UserRoleSetting";
import UserSetting from "@/components/UserSetting";
import {
Card,
@@ -14,7 +15,8 @@ import {
IconCategory2,
IconMailSpark,
IconUserCog,
IconUsersGroup,
IconUserScreen,
IconUsersGroup
} from "@tabler/icons-react";
import { useLocation } from "react-router-dom";
@@ -50,6 +52,12 @@ export default function DetailSettingPage() {
leftSection={<IconUsersGroup size={16} stroke={1.5} />}
active={type === "user"}
/>
<NavLink
href={`?type=role`}
label="Role"
leftSection={<IconUserScreen size={16} stroke={1.5} />}
active={type === "role"}
/>
<NavLink
href={`?type=cat-pengaduan`}
label="Kategori Pengaduan"
@@ -90,6 +98,8 @@ export default function DetailSettingPage() {
<DesaSetting />
) : type === "user" ? (
<UserSetting />
) : type === "role" ? (
<UserRoleSetting />
) : (
<ProfileUser />
)}