setting, session and profile fix
This commit is contained in:
parent
e3d8215f2f
commit
068142ed61
7 changed files with 134 additions and 66 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue