From 735254d48e4a19a1d7b490990c7d81905e61682d Mon Sep 17 00:00:00 2001 From: Carina Wollendorfer <30310907+CarinaWolli@users.noreply.github.com> Date: Tue, 13 Sep 2022 13:55:39 -0400 Subject: [PATCH] fixing settings layout for teams (#4444) Co-authored-by: CarinaWolli --- .../ui/v2/core/layouts/SettingsLayout.tsx | 42 ++++++++++++------- 1 file changed, 26 insertions(+), 16 deletions(-) diff --git a/packages/ui/v2/core/layouts/SettingsLayout.tsx b/packages/ui/v2/core/layouts/SettingsLayout.tsx index fb9f152799..befad7892c 100644 --- a/packages/ui/v2/core/layouts/SettingsLayout.tsx +++ b/packages/ui/v2/core/layouts/SettingsLayout.tsx @@ -11,6 +11,7 @@ import Button from "@calcom/ui/v2/core/Button"; import ErrorBoundary from "../../../ErrorBoundary"; import { Icon } from "../../../Icon"; +import { Badge } from "../Badge"; import { useMeta } from "../Meta"; import Shell from "../Shell"; import { VerticalTabItemProps } from "../navigation/tabs/VerticalTabItem"; @@ -150,7 +151,7 @@ const SettingsSidebarContainer = ({ className = "" }) => { ) : (
-
+
{tab && tab.icon && ( )} @@ -193,53 +194,62 @@ const SettingsSidebarContainer = ({ className = "" }) => { {team.logo && ( {team.name )}

{team.name}

+ {!team.accepted && ( + + Inv. + + )}
- + {team.accepted && ( + + )} {(team.role === MembershipRole.OWNER || team.role === MembershipRole.ADMIN) && ( <> - + /> */} - + /> */} )} ))}
- +

{t("add_a_team")}