refactor: remove investor portfolio and withdrawal pages and clean up related sidebar and admin navigation links.
This commit is contained in:
@@ -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';
|
||||
|
||||
Reference in New Issue
Block a user