Fixed sidebar link issue

This commit is contained in:
Jori Lallo 2017-10-15 22:15:15 -07:00
parent 5f5780ef72
commit 832a7abaf6
1 changed files with 5 additions and 1 deletions

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;