From e1a646d99f8aa9857d00d074d9c8cbd0cc2b3e64 Mon Sep 17 00:00:00 2001 From: Unknown Date: Thu, 8 Nov 2018 18:46:04 +0100 Subject: [PATCH] Permitting external links and removing useless "back to corporate" link --- client/src/views/layout/header/imports.js | 8 ++++---- client/src/views/layout/header/index.js | 13 ++++++------- 2 files changed, 10 insertions(+), 11 deletions(-) diff --git a/client/src/views/layout/header/imports.js b/client/src/views/layout/header/imports.js index 77205f165..0a4cc0f0b 100644 --- a/client/src/views/layout/header/imports.js +++ b/client/src/views/layout/header/imports.js @@ -12,7 +12,7 @@ const usersMenus = { { title: 'Your profile', to: '/users/user', icon: Search }, { title: 'Directory', to: '/users/browse', icon: GamepadRounded }, { title: 'Search', to: '/users/search', icon: AccessibilityNew }, - { title: 'Report', to: '/report/users', icon: LibraryAdd } + { title: 'Report', to: 'https://github.com/AdvancedAlgos/UsersModule/issues/new', icon: LibraryAdd, externalLink: true } ] } @@ -24,7 +24,7 @@ const teamsMenus = { { title: 'Your teams', to: '/teams/manage-teams', icon: GamepadRounded }, { title: 'Team members', to: '/teams/team-members', icon: GamepadRounded }, { title: 'Financial beings', to: '/teams/financial-beings', icon: GamepadRounded }, - { title: 'Report', to: '/report/teams', icon: LibraryAdd } + { title: 'Report', to: 'https://github.com/AdvancedAlgos/TeamsModule/issues/new', icon: LibraryAdd, externalLink: true } ] } @@ -36,7 +36,7 @@ const eventsMenus = { { title: 'Your events', to: '/events/my', icon: GamepadRounded }, { title: 'Your hosted events', to: '/events/host', icon: AccessibilityNew }, { title: 'Host an event', to: '/events/create', icon: LibraryAdd }, - { title: 'Report', to: '/report/events', icon: LibraryAdd } + { title: 'Report', to: 'https://github.com/AdvancedAlgos/UsersModule/issues/new', icon: LibraryAdd, externalLink: true } ] } @@ -46,7 +46,7 @@ const keyvaultMenus = { submenus: [ { title: 'Manage keys', to: '/key-vault/browse', icon: Search }, { title: 'Add key', to: '/key-vault/addKey', icon: GamepadRounded }, - { title: 'Report', to: '/report/key-vault', icon: LibraryAdd } + { title: 'Report', to: 'https://github.com/AdvancedAlgos/KeyVaultModule/issues/new', icon: LibraryAdd, externalLink: true } ] } diff --git a/client/src/views/layout/header/index.js b/client/src/views/layout/header/index.js index bcbbfae4b..dcc5c8d95 100644 --- a/client/src/views/layout/header/index.js +++ b/client/src/views/layout/header/index.js @@ -4,9 +4,6 @@ import { Link } from 'react-router-dom' import jwtDecode from 'jwt-decode' import withWidth from '@material-ui/core/withWidth' -// icons -import ExitIcon from '@material-ui/icons/ExitToApp' - // styles import './styles.scss' @@ -92,7 +89,12 @@ class Header extends Component { this.toggleMenuOpen(index, true)}> {title}