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:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -1,5 +1,6 @@
|
||||
.cache
|
||||
.DS_Store
|
||||
.idea
|
||||
coverage
|
||||
dist
|
||||
node_modules
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user