feat: implement Sonner notifications, add Setting model, and reorganize user management into settings navigation.

This commit is contained in:
Firman Ramdhani
2026-09-11 11:39:43 +07:00
parent f4358eb00b
commit d1ed8f803b
15 changed files with 460 additions and 64 deletions
+3 -2
View File
@@ -20,7 +20,8 @@ import {
ArrowUpRight,
Info,
BarChart2,
Wallet
Wallet,
Settings
} from 'lucide-react'
const menuItems = [
@@ -63,7 +64,7 @@ export function Sidebar({ isOpen, onClose }: { isOpen?: boolean; onClose?: () =>
// Dynamic Menu Items based on role
const finalMenuItems = [...menuItems]
if (userRole === 'superadmin') {
finalMenuItems.push({ name: 'User Management', href: '/users', icon: UserCircle, desc: 'Kelola pengguna' })
finalMenuItems.push({ name: 'Pengaturan', href: '/settings/users', icon: Settings, desc: 'Konfigurasi aplikasi' })
}
return (