feat: add Investments link to investor sidebar and fix indentation and alignment

This commit is contained in:
sazzadulalambd
2026-05-15 02:39:13 +06:00
parent dfc69faf48
commit 0c1a6e3a18

View File

@@ -100,12 +100,13 @@ export default function Sidebar() {
isInvestor ? investorNavItems : isInvestor ? investorNavItems :
isShop ? shopNavItems : bikerNavItems; isShop ? shopNavItems : bikerNavItems;
const bottomNavItems = isAdmin ? [ const bottomNavItems = isAdmin ? [
{ label: 'Home', href: '/admin', icon: BarChart3 }, { label: 'Home', href: '/admin', icon: BarChart3 },
{ label: 'Fleet', href: '/admin/fleet', icon: Bike }, { label: 'Fleet', href: '/admin/fleet', icon: Bike },
{ label: 'Users', href: '/admin/users', icon: Users }, { label: 'Users', href: '/admin/users', icon: Users },
] : isInvestor ? [ ] : isInvestor ? [
{ label: 'Home', href: '/investor', icon: Bike }, { label: 'Home', href: '/investor', icon: Bike },
{ label: 'Investments', href: '/investor/plans', icon: Target },
{ label: 'History', href: '/investor/rental-history', icon: History }, { label: 'History', href: '/investor/rental-history', icon: History },
{ label: 'Withdraw', href: '/investor/withdraw', icon: CreditCard }, { label: 'Withdraw', href: '/investor/withdraw', icon: CreditCard },
{ label: 'Profile', href: '/investor/profile', icon: User }, { label: 'Profile', href: '/investor/profile', icon: User },
@@ -196,7 +197,7 @@ const bottomNavItems = isAdmin ? [
</div> </div>
</aside> </aside>
{/* Bottom Navigation for Mobile */} {/* Bottom Navigation for Mobile */}
<nav className="lg:hidden fixed bottom-0 left-0 right-0 bg-white border-t border-slate-200 flex items-center h-16 z-30 shadow-[0_-4px_6px_-1px_rgba(0,0,0,0.05)]"> <nav className="lg:hidden fixed bottom-0 left-0 right-0 bg-white border-t border-slate-200 flex items-center h-16 z-30 shadow-[0_-4px_6px_-1px_rgba(0,0,0,0.05)]">
{bottomNavItems.map((item) => { {bottomNavItems.map((item) => {
const isActive = pathname === item.href || (item.href !== '/' && pathname.startsWith(item.href)); const isActive = pathname === item.href || (item.href !== '/' && pathname.startsWith(item.href));