refactor: clean up catch block formatting and comment out version display in Sidebar

This commit is contained in:
sazzadulalambd
2026-05-20 14:58:38 +06:00
parent 989221f953
commit 7332f85512

View File

@@ -104,14 +104,14 @@ export default function Sidebar() {
try {
const parsed = JSON.parse(adminNotifs);
setAdminUnreadCount(parsed.filter((n: any) => !n.read).length);
} catch (e) {}
} catch (e) { }
}
const invNotifs = localStorage.getItem('jaiben_investor_notifications');
if (invNotifs) {
try {
const parsed = JSON.parse(invNotifs);
setInvestorUnreadCount(parsed.filter((n: any) => !n.read).length);
} catch (e) {}
} catch (e) { }
}
};
@@ -190,7 +190,7 @@ export default function Sidebar() {
const isActive = isExact || isChild;
const Icon = item.icon;
const isNotification = item.label === 'Notifications';
return (
<Link
key={item.href}
@@ -235,10 +235,10 @@ export default function Sidebar() {
<LogOut className="w-4 h-4 text-slate-400" />
</button>
</Link>
<div className="mt-2 text-xs text-slate-400 text-center">
{/* <div className="mt-2 text-xs text-slate-400 text-center">
<p>Phase 1 - Core EV Rental</p>
<p className="mt-1">v1.0.0</p>
</div>
</div> */}
</div>
</aside>