fix: Remove 'More options' on share popover when sharing disabled

This commit is contained in:
Tom Moor
2022-09-29 09:15:58 -04:00
parent 41da156b0e
commit ca4663f78a

View File

@@ -237,11 +237,11 @@ function SharePopover({
)}
<Flex justify="space-between" style={{ marginBottom: 8 }}>
{expandedOptions ? (
{expandedOptions || !canPublish ? (
<span />
) : (
<MoreOptionsButton
icon={<ExpandedIcon />}
icon={<ExpandedIcon color="currentColor" />}
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;
`;