Skip to content
Snippets Groups Projects
Commit 82345398 authored by Allen Gilliland's avatar Allen Gilliland
Browse files

also set a `selected` state on Dashboard item on the navbar whenever user is on a dashboard.

parent 2020ef63
No related branches found
No related tags found
No related merge requests found
......@@ -104,7 +104,7 @@ export default class Navbar extends Component {
</li>
<li className="pl3">
<DashboardsDropdown {...this.props}>
<a style={this.styles.navButton} className="NavDropdown-button NavItem text-white text-bold cursor-pointer px2 flex align-center transition-background">
<a style={this.styles.navButton} className={cx("NavDropdown-button NavItem text-white text-bold cursor-pointer px2 flex align-center transition-background", {"NavItem--selected": this.isActive("/dash/")})}>
<span className="NavDropdown-button-layer">
Dashboards
<Icon className="ml1" name={'chevrondown'} width={8} height={8}></Icon>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment