From c737b613e4e1e2814e1ad24a6638cb1f4ee7d104 Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Fri, 10 Nov 2017 14:11:02 -0800 Subject: [PATCH] Remove another warning --- app/components/Layout/components/SidebarLink.js | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) diff --git a/app/components/Layout/components/SidebarLink.js b/app/components/Layout/components/SidebarLink.js index 7757462f9..ca7c57739 100644 --- a/app/components/Layout/components/SidebarLink.js +++ b/app/components/Layout/components/SidebarLink.js @@ -41,14 +41,6 @@ const StyledNavLink = styled(NavLink)` &:hover { color: ${color.text}; } - - &.active { - ${IconWrapper} & { - svg { - fill: ${({ iconColor }) => (iconColor ? iconColor : activeStyle.color)} - } - } - } `; const StyledDiv = StyledNavLink.withComponent('div'); @@ -86,16 +78,17 @@ type Props = { }; render() { - const { icon, children, expandedContent, ...rest } = this.props; - const Component = rest.to ? StyledNavLink : StyledDiv; + const { icon, children, onClick, to, expandedContent } = this.props; + const Component = to ? StyledNavLink : StyledDiv; return ( {icon && {icon}} {expandedContent &&