diff --git a/web/src/App.jsx b/web/src/App.jsx index 5e75028f05..5ed512a073 100644 --- a/web/src/App.jsx +++ b/web/src/App.jsx @@ -18,7 +18,7 @@ import React from 'react' import PropTypes from 'prop-types' import { matchPath, withRouter } from 'react-router' -import { Link, Redirect, Route, Switch } from 'react-router-dom' +import { Link, NavLink, Redirect, Route, Switch } from 'react-router-dom' import { connect } from 'react-redux' import { TimedToastNotification, @@ -90,27 +90,19 @@ class App extends React.Component { } renderMenu() { - const { location, tenant } = this.props - const activeItem = this.menu.find( - item => location.pathname === item.to - ) - + const { tenant } = this.props if (tenant.name) { return (