Merge branch 'master' into issue-392
This commit is contained in:
@@ -116,6 +116,7 @@ type CollectionLinkProps = {
|
|||||||
key={collection.id}
|
key={collection.id}
|
||||||
to={collection.url}
|
to={collection.url}
|
||||||
icon={<CollectionIcon expanded={expanded} color={collection.color} />}
|
icon={<CollectionIcon expanded={expanded} color={collection.color} />}
|
||||||
|
iconColor={collection.color}
|
||||||
>
|
>
|
||||||
<Flex justify="space-between">
|
<Flex justify="space-between">
|
||||||
{collection.name}
|
{collection.name}
|
||||||
|
|||||||
@@ -43,8 +43,10 @@ const StyledNavLink = styled(NavLink)`
|
|||||||
}
|
}
|
||||||
|
|
||||||
&.active {
|
&.active {
|
||||||
svg {
|
${IconWrapper} & {
|
||||||
fill: ${activeStyle.color}
|
svg {
|
||||||
|
fill: ${({ iconColor }) => (iconColor ? iconColor : activeStyle.color)}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
`;
|
`;
|
||||||
@@ -58,6 +60,7 @@ type Props = {
|
|||||||
icon?: React$Element<*>,
|
icon?: React$Element<*>,
|
||||||
expand?: boolean,
|
expand?: boolean,
|
||||||
expandedContent?: React$Element<*>,
|
expandedContent?: React$Element<*>,
|
||||||
|
iconColor?: string,
|
||||||
};
|
};
|
||||||
|
|
||||||
@observer class SidebarLink extends Component {
|
@observer class SidebarLink extends Component {
|
||||||
|
|||||||
Reference in New Issue
Block a user