setting, session and profile fix

This commit is contained in:
debu-2 2026-10-07 03:36:56 +05:30
parent e3d8215f2f
commit 068142ed61
7 changed files with 134 additions and 66 deletions

View file

@ -178,7 +178,7 @@ export default function DashboardPage() {
function logout() {
clearSession();
window.location.assign("/login");
window.location.replace("/login");
}
function closeMobileMenu() {
@ -506,7 +506,7 @@ export default function DashboardPage() {
<span className="dashboard-account-pill">{workspaceLabel}</span>
</div>
)}
{!companyActive && !["Inbox", "Outbox", "Trash"].includes(active) && (
{!companyActive && !["Inbox", "Outbox", "Trash", "Profile", "Settings"].includes(active) && (
<div className="dashboard-content-heading">
<div><p>{workspaceTitle}</p><h1>{active}</h1></div>
<span className="dashboard-account-pill">{workspaceLabel}</span>
@ -609,7 +609,7 @@ export default function DashboardPage() {
{(active === "Settings" || companyActive === "Settings") && (
<AccountSettings />
)}
{!companyActive && !["Inbox", "Outbox", "Trash", "Settings"].includes(active) && (
{!companyActive && !["Inbox", "Outbox", "Trash", "Settings", "Profile"].includes(active) && (
<section className="dashboard-empty">
<span><Sparkles size={24} /></span>
<h2>{active} is ready for you</h2>