From d61f5ae59ef6f5a3fa8890c1294a7097fdf46bb4 Mon Sep 17 00:00:00 2001 From: Katalina Okano Date: Sat, 19 Dec 2020 20:10:57 -0500 Subject: [PATCH] feat(AppShell): add option to disable my guilds popover --- src/design-system/organisms/app-shell/AppShell.tsx | 2 ++ src/design-system/organisms/masthead/Authed.tsx | 7 +++++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/design-system/organisms/app-shell/AppShell.tsx b/src/design-system/organisms/app-shell/AppShell.tsx index a283b78..8c4eea8 100644 --- a/src/design-system/organisms/app-shell/AppShell.tsx +++ b/src/design-system/organisms/app-shell/AppShell.tsx @@ -13,6 +13,7 @@ export type AppShellProps = { small?: boolean; activeGuildId?: string | null; guilds?: GuildSlug[]; + disableGuildPicker?: boolean; }; export const AppShell = (props: AppShellProps) => ( @@ -21,6 +22,7 @@ export const AppShell = (props: AppShellProps) => ( {props.user ? ( { @@ -39,8 +40,10 @@ export const Authed = (props: Props) => { { - setServerPopoverState(true); - setUserPopoverState(false); + if (!props.disableGuildPicker) { + setServerPopoverState(true); + setUserPopoverState(false); + } }} hide={!serverPopoverState} >