diff --git a/.env.development b/.env.development index d57d063..e7560ff 100644 --- a/.env.development +++ b/.env.development @@ -5,6 +5,7 @@ CSRF_TOKEN_API_PATH=/csrf/api/v1/token ECOMMERCE_BASE_URL=http://localhost:18130 LANGUAGE_PREFERENCE_COOKIE_NAME=openedx-language-preference LMS_BASE_URL=http://localhost:18000 +STUDIO_BASE_URL=http://localhost:18010 LOGIN_URL=http://localhost:18000/login LOGOUT_URL=http://localhost:18000/logout MARKETING_SITE_BASE_URL=http://localhost:18000 diff --git a/src/DesktopHeader.jsx b/src/DesktopHeader.jsx index 8da9977..8bd142f 100644 --- a/src/DesktopHeader.jsx +++ b/src/DesktopHeader.jsx @@ -54,6 +54,24 @@ class DesktopHeader extends React.Component { }); } + // Renders an optional App Menu for + renderAppMenu() { + const { appMenu } = this.props; + const { content: appMenuContent, menuItems } = appMenu; + return ( + + + {appMenuContent} + + + {menuItems.map(({ type, href, content }) => ( + {content} + ))} + + + ); + } + renderUserMenu() { const { userMenu, @@ -102,6 +120,7 @@ class DesktopHeader extends React.Component { logoDestination, loggedIn, intl, + appMenu, } = this.props; const logoProps = { src: logo, alt: logoAltText, href: logoDestination }; const logoClasses = getConfig().AUTHN_MINIMAL_HEADER ? 'mw-100' : null; @@ -118,6 +137,14 @@ class DesktopHeader extends React.Component { > {this.renderMainMenu()} + {appMenu ? ( + + ) : null}