feat: enable swap station login, update admin manager credentials, and improve UI labels and navigation

This commit is contained in:
sazzadulalambd
2026-05-07 16:23:27 +06:00
parent 0fe8b7f50f
commit 89ed9975ca
2 changed files with 6 additions and 6 deletions

View File

@@ -3,7 +3,7 @@
import { useState } from 'react'; import { useState } from 'react';
import { useRouter } from 'next/navigation'; import { useRouter } from 'next/navigation';
import { users } from '@/data/mockData'; import { users } from '@/data/mockData';
import { Zap, ArrowRight, Bike, Wallet, Shield, Users, Calculator, Store, Truck } from 'lucide-react'; import { Zap, ArrowRight, Bike, Wallet, Shield, Users, Calculator } from 'lucide-react';
const demoUsers = [ const demoUsers = [
{ email: 'superadmin@jaiben.com', role: 'super_admin', label: 'Super Admin', icon: Shield, color: 'bg-accent' }, { email: 'superadmin@jaiben.com', role: 'super_admin', label: 'Super Admin', icon: Shield, color: 'bg-accent' },
@@ -11,7 +11,7 @@ const demoUsers = [
{ email: 'staff@jaiben.com', role: 'staff', label: 'Front Desk', icon: Users, color: 'bg-purple-500' }, { email: 'staff@jaiben.com', role: 'staff', label: 'Front Desk', icon: Users, color: 'bg-purple-500' },
{ email: 'accountant@jaiben.com', role: 'accountant', label: 'Accountant', icon: Calculator, color: 'bg-green-500' }, { email: 'accountant@jaiben.com', role: 'accountant', label: 'Accountant', icon: Calculator, color: 'bg-green-500' },
{ email: 'investor@email.com', role: 'investor', label: 'Investor', icon: Wallet, color: 'bg-amber-500' }, { email: 'investor@email.com', role: 'investor', label: 'Investor', icon: Wallet, color: 'bg-amber-500' },
// { email: 'swap@jaiben.com', role: 'swap-station', label: 'Swap Station', icon: Zap, color: 'bg-purple-500' }, { email: 'swap@jaiben.com', role: 'swap-station', label: 'Swap Station', icon: Zap, color: 'bg-purple-500' },
]; ];
export default function LoginPage() { export default function LoginPage() {
@@ -98,7 +98,7 @@ export default function LoginPage() {
router.push('/merchant'); router.push('/merchant');
break; break;
default: default:
router.push('/'); router.push('/login');
} }
} }
setLoading(false); setLoading(false);
@@ -141,7 +141,7 @@ export default function LoginPage() {
<div> <div>
<label htmlFor="password" className="block text-sm font-medium text-slate-300 mb-2"> <label htmlFor="password" className="block text-sm font-medium text-slate-300 mb-2">
Password Password <span className="text-slate-500 text-xs">(demo: demo123)</span>
</label> </label>
<input <input
type="password" type="password"
@@ -219,7 +219,7 @@ export default function LoginPage() {
<div className="mt-6 text-center"> <div className="mt-6 text-center">
<p className="text-slate-500 text-xs"> <p className="text-slate-500 text-xs">
© 2024 JAIBEN Mobility Ltd. All rights reserved. &copy; 2026 JAIBEN Mobility Ltd. All rights reserved.
</p> </p>
</div> </div>
</div> </div>

View File

@@ -160,7 +160,7 @@ export const users: User[] = [
{ id: 'u0', name: 'Super Admin', email: 'superadmin@jaiben.com', phone: '01710000000', role: 'super_admin', status: 'active', createdAt: '2023-01-01' }, { id: 'u0', name: 'Super Admin', email: 'superadmin@jaiben.com', phone: '01710000000', role: 'super_admin', status: 'active', createdAt: '2023-01-01' },
{ 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 User', email: 'admin@jaiben.com', phone: '01710000001', role: 'admin', 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: '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' },