modify header for logistration mfe (#73)

* modify header for logistration mfe

* Update .gitignore

Co-authored-by: Waheed Ahmed <waheed.ahmed@arbisoft.com>
This commit is contained in:
Uzair Rasheed
2020-11-17 20:04:07 +05:00
committed by GitHub
parent 90df9feb87
commit bb7c5cb39f
2 changed files with 3 additions and 2 deletions

1
.gitignore vendored
View File

@@ -1,5 +1,6 @@
.cache
.DS_Store
.idea
coverage
dist
node_modules

View File

@@ -21,7 +21,7 @@ ensureConfig([
function Header({ intl }) {
const { authenticatedUser, config } = useContext(AppContext);
const mainMenu = [
const mainMenu = config.HIDE_HEADER_NAV === 'true' ? [] : [
{
type: 'item',
href: `${config.LMS_BASE_URL}/dashboard`,
@@ -52,7 +52,7 @@ function Header({ intl }) {
},
];
const loggedOutItems = [
const loggedOutItems = config.HIDE_HEADER_NAV === 'true' ? [] : [
{
type: 'item',
href: config.LOGIN_URL,