diff --git a/src/app/investor/page.tsx b/src/app/investor/dashboard/page.tsx similarity index 100% rename from src/app/investor/page.tsx rename to src/app/investor/dashboard/page.tsx diff --git a/src/app/login/page.tsx b/src/app/login/page.tsx index d87725b..10ac185 100644 --- a/src/app/login/page.tsx +++ b/src/app/login/page.tsx @@ -57,7 +57,7 @@ export default function LoginPage() { router.push('/admin/accounting'); break; case 'investor': - router.push('/investor'); + router.push('/investor/dashboard'); break; case 'biker': router.push('/biker'); @@ -110,7 +110,7 @@ export default function LoginPage() { router.push('/admin/accounting'); break; case 'investor': - router.push('/investor'); + router.push('/investor/dashboard'); break; case 'biker': router.push('/biker'); diff --git a/src/components/Sidebar.tsx b/src/components/Sidebar.tsx index 6ebe62f..bea4148 100644 --- a/src/components/Sidebar.tsx +++ b/src/components/Sidebar.tsx @@ -65,7 +65,7 @@ const bikerNavItems = [ ]; const investorNavItems = [ - { label: 'Dashboard', href: '/investor', icon: Bike }, + { label: 'Dashboard', href: '/investor/dashboard', icon: Bike }, { label: 'My Investments', href: '/investor/plans', icon: Target }, { label: 'Rental History', href: '/investor/rental-history', icon: History }, { label: 'Withdraw', href: '/investor/withdraw', icon: CreditCard }, @@ -105,7 +105,7 @@ export default function Sidebar() { { label: 'Fleet', href: '/admin/fleet', icon: Bike }, { label: 'Users', href: '/admin/users', icon: Users }, ] : isInvestor ? [ - { label: 'Home', href: '/investor', icon: Bike }, + { label: 'Home', href: '/investor/dashboard', icon: Bike }, { label: 'Investments', href: '/investor/plans', icon: Target }, { label: 'History', href: '/investor/rental-history', icon: History }, { label: 'Withdraw', href: '/investor/withdraw', icon: CreditCard }, @@ -149,7 +149,9 @@ export default function Sidebar() {