Fixed sidebar link issue
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user