conditionally assigning margin based on avatar in org tabs
This commit is contained in:
parent
c648ca6878
commit
e6cf423432
@ -45,7 +45,7 @@ const OrgAvatar = styled(Avatar)`
|
|||||||
`;
|
`;
|
||||||
|
|
||||||
const OrgName = styled.span`
|
const OrgName = styled.span`
|
||||||
margin-left: ${remcalc(12)};
|
margin-left: ${props => props.avatar ? remcalc(12) : 0};
|
||||||
margin-top: ${remcalc(3)};
|
margin-top: ${remcalc(3)};
|
||||||
color: ${colors.base.text}
|
color: ${colors.base.text}
|
||||||
`;
|
`;
|
||||||
@ -117,7 +117,7 @@ const OrgNavigation = ({
|
|||||||
width={remcalc(26)}
|
width={remcalc(26)}
|
||||||
/>
|
/>
|
||||||
</OrgImage>
|
</OrgImage>
|
||||||
<OrgName>
|
<OrgName avatar={image}>
|
||||||
{name}
|
{name}
|
||||||
</OrgName>
|
</OrgName>
|
||||||
</NavigationLinkContainer>
|
</NavigationLinkContainer>
|
||||||
|
Loading…
Reference in New Issue
Block a user