Merge pull request #28 from edx/modify-header-for-logistration-mfe
Hide header menu links and removed footer.
This commit is contained in:
1
.env
1
.env
@@ -14,3 +14,4 @@ REFRESH_ACCESS_TOKEN_ENDPOINT=null
|
||||
SEGMENT_KEY=null
|
||||
SITE_NAME=null
|
||||
USER_INFO_COOKIE_NAME=null
|
||||
LOGISTRATION_MINIMAL_HEADER=true
|
||||
|
||||
@@ -15,3 +15,4 @@ REFRESH_ACCESS_TOKEN_ENDPOINT='http://localhost:18000/login_refresh'
|
||||
SEGMENT_KEY=null
|
||||
SITE_NAME='edX'
|
||||
USER_INFO_COOKIE_NAME='edx-user-info'
|
||||
LOGISTRATION_MINIMAL_HEADER=true
|
||||
|
||||
@@ -7,5 +7,6 @@ module.exports = createConfig('jest', {
|
||||
coveragePathIgnorePatterns: [
|
||||
'src/setupTest.js',
|
||||
'src/i18n',
|
||||
'src/index.jsx',
|
||||
],
|
||||
});
|
||||
|
||||
@@ -9,7 +9,6 @@ import ReactDOM from 'react-dom';
|
||||
import { Route, Switch } from 'react-router-dom';
|
||||
|
||||
import Header, { messages as headerMessages } from '@edx/frontend-component-header';
|
||||
import Footer, { messages as footerMessages } from '@edx/frontend-component-footer';
|
||||
|
||||
import configureStore from './data/configureStore';
|
||||
import { LoginPage, RegistrationPage, NotFoundPage } from './logistration';
|
||||
@@ -24,20 +23,19 @@ import './assets/favicon.ico';
|
||||
|
||||
registerIcons();
|
||||
|
||||
const HeaderFooterLayout = ({ children }) => ( // eslint-disable-line react/prop-types
|
||||
const HeaderLayout = ({ children }) => ( // eslint-disable-line react/prop-types
|
||||
<div className="d-flex flex-column" style={{ minHeight: '100vh' }}>
|
||||
<Header />
|
||||
<main className="flex-grow-1">
|
||||
{children}
|
||||
</main>
|
||||
<Footer />
|
||||
</div>
|
||||
);
|
||||
|
||||
subscribe(APP_READY, () => {
|
||||
ReactDOM.render(
|
||||
<AppProvider store={configureStore()}>
|
||||
<HeaderFooterLayout>
|
||||
<HeaderLayout>
|
||||
<Switch>
|
||||
<Route path={LOGIN_PAGE} component={LoginPage} />
|
||||
<Route path={REGISTER_PAGE} component={RegistrationPage} />
|
||||
@@ -46,7 +44,7 @@ subscribe(APP_READY, () => {
|
||||
<Route path="/notfound" component={NotFoundPage} />
|
||||
<Route path="*" component={NotFoundPage} />
|
||||
</Switch>
|
||||
</HeaderFooterLayout>
|
||||
</HeaderLayout>
|
||||
</AppProvider>,
|
||||
document.getElementById('root'),
|
||||
);
|
||||
@@ -60,6 +58,5 @@ initialize({
|
||||
messages: [
|
||||
appMessages,
|
||||
headerMessages,
|
||||
footerMessages,
|
||||
],
|
||||
});
|
||||
|
||||
@@ -19,7 +19,7 @@ const messages = defineMessages({
|
||||
},
|
||||
'logistration.forgot.password.link': {
|
||||
id: 'logistration.forgot.password.link',
|
||||
defaultMessage: 'Forgot password?',
|
||||
defaultMessage: 'Forgot my password',
|
||||
description: 'Forgot password link',
|
||||
},
|
||||
'logistration.other.sign.in.issues': {
|
||||
|
||||
Reference in New Issue
Block a user