feat: implement investor withdrawal workflow and add new navigation routes for investments, plans, and withdrawals

This commit is contained in:
sazzadulalambd
2026-05-15 01:31:21 +06:00
parent 1fd8c5153a
commit c1ab1eb0a3
7 changed files with 1288 additions and 81 deletions

View File

@@ -22,7 +22,8 @@ import {
ChevronDown,
LogOut,
Calculator,
Wrench
Wrench,
Target, User
} from 'lucide-react';
import { getUserName, getUserRole, logout } from '@/lib/auth';
@@ -64,7 +65,10 @@ const bikerNavItems = [
];
const investorNavItems = [
{ label: 'Dashboard', href: '/investor', icon: Wallet },
{ label: 'Dashboard', href: '/investor', icon: BarChart3 },
{ label: 'My Investments', href: '/investor/plans', icon: Target },
{ label: 'Withdraw', href: '/investor/withdraw', icon: CreditCard },
{ label: 'My Profile', href: '/investor/profile', icon: User },
];
const shopNavItems = [
@@ -100,8 +104,8 @@ export default function Sidebar() {
{ label: 'Fleet', href: '/admin/fleet', icon: Bike },
{ label: 'Users', href: '/admin/users', icon: Users },
] : isInvestor ? [
{ label: 'Home', href: '/investor', icon: Wallet },
{ label: 'Portfolio', href: '/investor/portfolio', icon: BarChart3 },
{ label: 'Home', href: '/investor', icon: BarChart3 },
{ label: 'Investments', href: '/investor/plans', icon: Target },
{ label: 'Withdraw', href: '/investor/withdraw', icon: CreditCard },
] : isShop ? [
{ label: 'Home', href: '/shop', icon: Store },