refactor: update user roles, clean up admin settings UI, and adjust dashboard navigation logic

This commit is contained in:
sazzadulalambd
2026-05-09 22:49:26 +06:00
parent e8ccfb9879
commit 25a421e7a7
2 changed files with 3 additions and 3 deletions

View File

@@ -20,8 +20,8 @@ export default function LandingPage() {
sessionStorage.setItem('userName', user.name); sessionStorage.setItem('userName', user.name);
switch (user.role) { switch (user.role) {
case 'admin': case 'super_admin':
case 'manager': case 'admin_manager':
case 'staff': case 'staff':
router.push('/admin'); router.push('/admin');
break; break;

View File

@@ -161,7 +161,7 @@ export const users: User[] = [
{ id: 'u1', name: 'Rahim Ahmed', email: 'rahim@email.com', phone: '01712345678', role: 'biker', status: 'active', createdAt: '2024-01-15' }, { id: 'u1', name: 'Rahim Ahmed', email: 'rahim@email.com', phone: '01712345678', role: 'biker', status: 'active', createdAt: '2024-01-15' },
{ id: 'u2', name: 'Karim Hasan', email: 'karim@email.com', phone: '01712345679', role: 'biker', status: 'active', createdAt: '2024-02-20' }, { id: 'u2', name: 'Karim Hasan', email: 'karim@email.com', phone: '01712345679', role: 'biker', status: 'active', createdAt: '2024-02-20' },
{ id: 'u3', name: 'Admin Manager', email: 'adminmanager@jaiben.com', phone: '01710000001', role: 'admin_manager', status: 'active', createdAt: '2023-06-01' }, { id: 'u3', name: 'Admin Manager', email: 'adminmanager@jaiben.com', phone: '01710000001', role: 'admin_manager', status: 'active', createdAt: '2023-06-01' },
{ id: 'u4', name: 'Manager User', email: 'manager@jaiben.com', phone: '01710000002', role: 'manager', status: 'active', createdAt: '2023-06-01' }, { id: 'u4', name: 'Manager User', email: 'manager@jaiben.com', phone: '01710000002', role: 'admin_manager', status: 'active', createdAt: '2023-06-01' },
{ id: 'u5', name: 'Staff User', email: 'staff@jaiben.com', phone: '01710000003', role: 'staff', status: 'active', createdAt: '2023-07-01' }, { id: 'u5', name: 'Staff User', email: 'staff@jaiben.com', phone: '01710000003', role: 'staff', status: 'active', createdAt: '2023-07-01' },
{ id: 'u6', name: 'Accountant User', email: 'accountant@jaiben.com', phone: '01710000004', role: 'accountant', status: 'active', createdAt: '2023-07-01' }, { id: 'u6', name: 'Accountant User', email: 'accountant@jaiben.com', phone: '01710000004', role: 'accountant', status: 'active', createdAt: '2023-07-01' },
{ id: 'u7', name: 'Investor User', email: 'investor@email.com', phone: '01720000001', role: 'investor', status: 'active', createdAt: '2023-08-01' }, { id: 'u7', name: 'Investor User', email: 'investor@email.com', phone: '01720000001', role: 'investor', status: 'active', createdAt: '2023-08-01' },