feat: enable swap station login, update admin manager credentials, and improve UI labels and navigation
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
import { useState } from 'react';
|
||||
import { useRouter } from 'next/navigation';
|
||||
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 = [
|
||||
{ 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: '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: '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() {
|
||||
@@ -98,7 +98,7 @@ export default function LoginPage() {
|
||||
router.push('/merchant');
|
||||
break;
|
||||
default:
|
||||
router.push('/');
|
||||
router.push('/login');
|
||||
}
|
||||
}
|
||||
setLoading(false);
|
||||
@@ -141,7 +141,7 @@ export default function LoginPage() {
|
||||
|
||||
<div>
|
||||
<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>
|
||||
<input
|
||||
type="password"
|
||||
@@ -219,7 +219,7 @@ export default function LoginPage() {
|
||||
|
||||
<div className="mt-6 text-center">
|
||||
<p className="text-slate-500 text-xs">
|
||||
© 2024 JAIBEN Mobility Ltd. All rights reserved.
|
||||
© 2026 JAIBEN Mobility Ltd. All rights reserved.
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user