Merge pull request #306 from jorilallo/jori/fix-to-fix

Fixed sidebar link issue
This commit is contained in:
Jori Lallo
2017-10-15 22:36:42 -07:00
committed by GitHub

View File

@@ -42,7 +42,7 @@ function SidebarLink(props: Object) {
<Flex>
<Component exact activeStyle={activeStyle} {...props}>
{props.hasChildren && <StyledChevron expanded={props.expanded} />}
<div>{props.children}</div>
<Content>{props.children}</Content>
</Component>
</Flex>
);
@@ -62,4 +62,8 @@ const StyledChevron = styled(ChevronIcon)`
}
`;
const Content = styled.div`
width: 100%;
`;
export default SidebarLink;