소스 검색

fix: disable reduced UI on welcome page

master
Bettenbuk Zoltan 6 년 전
부모
커밋
7a985dd843
1개의 변경된 파일12개의 추가작업 그리고 4개의 파일을 삭제
  1. 12
    4
      react/features/welcome/components/WelcomePage.native.js

+ 12
- 4
react/features/welcome/components/WelcomePage.native.js 파일 보기

98
      * @returns {ReactElement}
98
      * @returns {ReactElement}
99
      */
99
      */
100
     render() {
100
     render() {
101
+        // We want to have the welcome page support the reduced UI layout,
102
+        // but we ran into serious issues enabling it so we disable it
103
+        // until we have a proper fix in place. We leave the code here though, because
104
+        // this part should be fine when the bug is fixed.
105
+        //
106
+        // NOTE: when re-enabling, don't forget to uncomment the respective _mapStateToProps line too
107
+
108
+        /*
101
         const { _reducedUI } = this.props;
109
         const { _reducedUI } = this.props;
102
 
110
 
103
         if (_reducedUI) {
111
         if (_reducedUI) {
104
             return this._renderReducedUI();
112
             return this._renderReducedUI();
105
         }
113
         }
114
+        */
106
 
115
 
107
         return this._renderFullUI();
116
         return this._renderFullUI();
108
     }
117
     }
316
  * @returns {Object}
325
  * @returns {Object}
317
  */
326
  */
318
 function _mapStateToProps(state) {
327
 function _mapStateToProps(state) {
319
-    const { reducedUI } = state['features/base/responsive-ui'];
320
-
321
     return {
328
     return {
322
         ..._abstractMapStateToProps(state),
329
         ..._abstractMapStateToProps(state),
323
-        _headerStyles: ColorSchemeRegistry.get(state, 'Header'),
324
-        _reducedUI: reducedUI
330
+        _headerStyles: ColorSchemeRegistry.get(state, 'Header')
331
+
332
+        // _reducedUI: state['features/base/responsive-ui'].reducedUI
325
     };
333
     };
326
 }
334
 }
327
 
335
 

Loading…
취소
저장