1
0
mirror of https://github.com/yldio/copilot.git synced 2024-11-13 06:40:06 +02:00

conditionally assigning margin based on avatar in org tabs

This commit is contained in:
Alex Windett 2017-03-02 10:50:27 +00:00
parent c648ca6878
commit e6cf423432

View File

@ -45,7 +45,7 @@ const OrgAvatar = styled(Avatar)`
`;
const OrgName = styled.span`
margin-left: ${remcalc(12)};
margin-left: ${props => props.avatar ? remcalc(12) : 0};
margin-top: ${remcalc(3)};
color: ${colors.base.text}
`;
@ -117,7 +117,7 @@ const OrgNavigation = ({
width={remcalc(26)}
/>
</OrgImage>
<OrgName>
<OrgName avatar={image}>
{name}
</OrgName>
</NavigationLinkContainer>