diff --git a/client/src/components/Header/Menu.js b/client/src/components/Header/Menu.js index 2b473e4b..ae6fd788 100644 --- a/client/src/components/Header/Menu.js +++ b/client/src/components/Header/Menu.js @@ -8,6 +8,32 @@ 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, + }, + + // Settings dropdown should have visual order 1 + + { + 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 +62,31 @@ class Menu extends Component {
diff --git a/client/src/components/Header/index.js b/client/src/components/Header/index.js index 7c1e5674..9bd99920 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 + }