diff --git a/client/src/components/Header/Menu.js b/client/src/components/Header/Menu.js index 2b473e4b..1a92f74d 100644 --- a/client/src/components/Header/Menu.js +++ b/client/src/components/Header/Menu.js @@ -8,6 +8,29 @@ import { Trans, withNamespaces } from 'react-i18next'; import { SETTINGS_URLS } from '../../helpers/constants'; import Dropdown from '../ui/Dropdown'; +const MENU_ITEMS = [ + { + route: '', exact: true, xlinkHref: 'dashboard', text: 'dashboard', order: 0, + }, + { + route: 'filters', xlinkHref: 'filters', text: 'filters', order: 2, + }, + { + route: 'logs', xlinkHref: 'log', text: 'query_log', order: 3, + }, + { + route: 'guide', xlinkHref: 'setup', text: 'setup_guide', order: 4, + }, +]; + +const DROPDOWN_ITEMS = [ + { route: 'settings', text: 'general_settings' }, + { route: 'dns', text: 'dns_settings' }, + { route: 'encryption', text: 'encryption_settings' }, + { route: 'clients', text: 'client_settings' }, + { route: 'dhcp', text: 'dhcp_settings' }, +]; + class Menu extends Component { handleClickOutside = () => { this.props.closeMenu(); @@ -36,70 +59,31 @@ class Menu extends Component {
diff --git a/client/src/components/Header/index.js b/client/src/components/Header/index.js index 8d16e614..d3bf09bf 100644 --- a/client/src/components/Header/index.js +++ b/client/src/components/Header/index.js @@ -38,7 +38,7 @@ class Header extends Component { className="header-toggler d-lg-none ml-lg-0 collapsed" onClick={this.toggleMenuOpen} > - +
@@ -61,9 +61,9 @@ class Header extends Component {
{!dashboard.processingProfile && dashboard.name && - - sign_out - + + sign_out + }