fix(footer): show only on non-learn pages
This commit is contained in:
committed by
Stuart Taylor
parent
b94c87494c
commit
71cf52144e
@@ -21,7 +21,6 @@ import OfflineWarning from '../OfflineWarning';
|
||||
import Flash from '../Flash';
|
||||
import Header from '../Header';
|
||||
import Footer from '../Footer';
|
||||
import Spacer from '../helpers/Spacer';
|
||||
|
||||
import './global.css';
|
||||
import './layout.css';
|
||||
@@ -70,6 +69,7 @@ const propTypes = {
|
||||
isOnline: PropTypes.bool.isRequired,
|
||||
isSignedIn: PropTypes.bool,
|
||||
landingPage: PropTypes.bool,
|
||||
nonLearnPage: PropTypes.bool,
|
||||
onlineStatusChange: PropTypes.func.isRequired,
|
||||
removeFlashMessage: PropTypes.func.isRequired
|
||||
};
|
||||
@@ -139,6 +139,7 @@ class DefaultLayout extends Component {
|
||||
flashMessages = [],
|
||||
removeFlashMessage,
|
||||
landingPage,
|
||||
nonLearnPage,
|
||||
isOnline,
|
||||
isSignedIn
|
||||
} = this.props;
|
||||
@@ -165,9 +166,7 @@ class DefaultLayout extends Component {
|
||||
) : null}
|
||||
{children}
|
||||
</div>
|
||||
<hr/>
|
||||
<Spacer size={3}/>
|
||||
<Footer />
|
||||
{nonLearnPage ? (<Footer />) : null}
|
||||
</Fragment>
|
||||
);
|
||||
}
|
||||
|
Reference in New Issue
Block a user