refactor: remove investor portfolio and withdrawal pages and clean up related sidebar and admin navigation links.

This commit is contained in:
sazzadulalambd
2026-05-14 23:15:10 +06:00
parent 38c8461f0d
commit f6b394aded
5 changed files with 392 additions and 226 deletions

View File

@@ -65,8 +65,6 @@ const bikerNavItems = [
const investorNavItems = [
{ label: 'Dashboard', href: '/investor', icon: Wallet },
{ label: 'Portfolio', href: '/investor/portfolio', icon: BarChart3 },
{ label: 'Withdraw', href: '/investor/withdraw', icon: CreditCard },
];
const shopNavItems = [
@@ -132,7 +130,7 @@ export default function Sidebar() {
<div className="px-2 py-1 bg-accent-light rounded text-xs font-semibold text-accent">
{roleLabel}
</div>
<button
<button
onClick={() => setMobileOpen(false)}
className="lg:hidden p-1 text-slate-400 hover:text-slate-600 rounded-lg hover:bg-slate-100"
>
@@ -175,7 +173,7 @@ export default function Sidebar() {
<p className="text-sm font-medium text-slate-700 truncate">{userName}</p>
<p className="text-xs text-slate-400">{roleLabel}</p>
</div>
<button
<button
onClick={() => {
logout();
window.location.href = '/login';