From 44745d025237a45dc774bc86ad41a30b5a2e704c Mon Sep 17 00:00:00 2001 From: sazzadulalambd Date: Fri, 15 May 2026 02:47:48 +0600 Subject: [PATCH] refactor: migrate investor dashboard to dedicated subfolder and update navigation paths --- src/app/investor/{ => dashboard}/page.tsx | 0 src/app/login/page.tsx | 4 ++-- src/components/Sidebar.tsx | 12 ++++++++---- 3 files changed, 10 insertions(+), 6 deletions(-) rename src/app/investor/{ => dashboard}/page.tsx (100%) 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() {