From d3aeb729e081880b7c114563816dc38901c2292c Mon Sep 17 00:00:00 2001 From: Vladyslav Matsiiako Date: Wed, 12 Jul 2023 11:18:42 -0700 Subject: [PATCH] fixing ui/ux bugs --- frontend/src/layouts/AppLayout/AppLayout.tsx | 152 ++++++++++-------- .../src/pages/org/[id]/overview/index.tsx | 135 +++++++++++----- 2 files changed, 181 insertions(+), 106 deletions(-) diff --git a/frontend/src/layouts/AppLayout/AppLayout.tsx b/frontend/src/layouts/AppLayout/AppLayout.tsx index 586f171f4..0f5050554 100644 --- a/frontend/src/layouts/AppLayout/AppLayout.tsx +++ b/frontend/src/layouts/AppLayout/AppLayout.tsx @@ -163,7 +163,7 @@ export const AppLayout = ({ children }: LayoutProps) => { if (currentOrg && ( (workspaces?.length === 0 && router.asPath.includes("project")) || router.asPath.includes("/project/undefined") - || (!orgs?.map(org => org._id)?.includes(router.query.id) && !router.asPath.includes("project") && !router.asPath.includes("integration")) + || (!orgs?.map(org => org._id)?.includes(router.query.id) && !router.asPath.includes("project") && !router.asPath.includes("personal") && !router.asPath.includes("integration")) )) { router.push(`/org/${currentOrg?._id}/overview`); } @@ -259,7 +259,7 @@ export const AppLayout = ({ children }: LayoutProps) => {
{currentOrg?.name}
- +
{user?.email}
{orgs?.map(org =>