fix: disable reduced UI on welcome page
This commit is contained in:
parent
e09ea36055
commit
7a985dd843
|
@ -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
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue