From ca4663f78a03247828b2d1519d5e99852f6aaac9 Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Thu, 29 Sep 2022 09:15:58 -0400 Subject: [PATCH] fix: Remove 'More options' on share popover when sharing disabled --- app/scenes/Document/components/SharePopover.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/scenes/Document/components/SharePopover.tsx b/app/scenes/Document/components/SharePopover.tsx index 6c203dd25..f612af454 100644 --- a/app/scenes/Document/components/SharePopover.tsx +++ b/app/scenes/Document/components/SharePopover.tsx @@ -237,11 +237,11 @@ function SharePopover({ )} - {expandedOptions ? ( + {expandedOptions || !canPublish ? ( ) : ( } + icon={} onClick={() => setExpandedOptions(true)} neutral borderOnHover @@ -281,7 +281,7 @@ const SwitchWrapper = styled.div` const MoreOptionsButton = styled(Button)` background: none; font-size: 14px; - color: ${(props) => props.theme.textSecondary}; + color: ${(props) => props.theme.textTertiary}; margin-left: -8px; `;