WIP: Dashboard tabs

This commit is contained in:
Tom Moor
2018-08-09 23:14:51 -07:00
parent d222a311ad
commit 2f681b1ce8
9 changed files with 182 additions and 147 deletions

View File

@@ -52,6 +52,7 @@ type Props = {
iconColor?: string,
active?: boolean,
theme: Object,
exact?: boolean,
};
@observer
@@ -100,6 +101,7 @@ class SidebarLink extends React.Component<Props> {
menu,
menuOpen,
hideExpandToggle,
exact,
} = this.props;
const Component = to ? StyledNavLink : StyledDiv;
const showExpandIcon =
@@ -113,7 +115,7 @@ class SidebarLink extends React.Component<Props> {
style={active ? this.activeStyle : undefined}
onClick={onClick}
to={to}
exact
exact={exact !== false}
>
{icon && <IconWrapper>{icon}</IconWrapper>}
{showExpandIcon && (