fix: disable reduced UI on welcome page

This commit is contained in:
Bettenbuk Zoltan 2019-07-23 16:07:55 +02:00 committed by Saúl Ibarra Corretgé
parent e09ea36055
commit 7a985dd843
1 changed files with 12 additions and 4 deletions

View File

@ -98,11 +98,20 @@ class WelcomePage extends AbstractWelcomePage {
* @returns {ReactElement} * @returns {ReactElement}
*/ */
render() { render() {
// We want to have the welcome page support the reduced UI layout,
// but we ran into serious issues enabling it so we disable it
// until we have a proper fix in place. We leave the code here though, because
// this part should be fine when the bug is fixed.
//
// NOTE: when re-enabling, don't forget to uncomment the respective _mapStateToProps line too
/*
const { _reducedUI } = this.props; const { _reducedUI } = this.props;
if (_reducedUI) { if (_reducedUI) {
return this._renderReducedUI(); return this._renderReducedUI();
} }
*/
return this._renderFullUI(); return this._renderFullUI();
} }
@ -316,12 +325,11 @@ class WelcomePage extends AbstractWelcomePage {
* @returns {Object} * @returns {Object}
*/ */
function _mapStateToProps(state) { function _mapStateToProps(state) {
const { reducedUI } = state['features/base/responsive-ui'];
return { return {
..._abstractMapStateToProps(state), ..._abstractMapStateToProps(state),
_headerStyles: ColorSchemeRegistry.get(state, 'Header'), _headerStyles: ColorSchemeRegistry.get(state, 'Header')
_reducedUI: reducedUI
// _reducedUI: state['features/base/responsive-ui'].reducedUI
}; };
} }