feat: implement investor withdrawal workflow and add new navigation routes for investments, plans, and withdrawals
This commit is contained in:
@@ -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 },
|
||||
|
||||
Reference in New Issue
Block a user