소스 검색

fix(dialog) remove obsolete prop no longer used in web

factor2
Saúl Ibarra Corretgé 3 년 전
부모
커밋
0ad6bd4d83

+ 1
- 4
react/features/base/dialog/actions.js 파일 보기

@@ -30,17 +30,14 @@ export function hideDialog(component: ?Object) {
30 30
  * @param {Object} component - The component to display as dialog.
31 31
  * @param {Object} [componentProps] - The React {@code Component} props of the
32 32
  * specified {@code component}.
33
- * @param {boolean} rawDialog - True if the dialog is a raw dialog.
34
- * (Doesn't inherit behavior from other common frameworks).
35 33
  * @returns {{
36 34
  *     type: OPEN_DIALOG,
37 35
  *     component: React.Component,
38 36
  *     componentProps: (Object | undefined)
39 37
  * }}
40 38
  */
41
-export function openDialog(component: Object, componentProps: ?Object, rawDialog?: boolean) {
39
+export function openDialog(component: Object, componentProps: ?Object) {
42 40
     return {
43
-        rawDialog,
44 41
         type: OPEN_DIALOG,
45 42
         component,
46 43
         componentProps

+ 0
- 6
react/features/base/dialog/components/AbstractDialogContainer.js 파일 보기

@@ -19,11 +19,6 @@ type Props = {
19 19
      */
20 20
     _componentProps: Object,
21 21
 
22
-    /**
23
-     * True if the dialog is a raw dialog (doesn't inherit behavior from other common frameworks, such as atlaskit).
24
-     */
25
-    _rawDialog: boolean,
26
-
27 22
     /**
28 23
      * True if the UI is in a compact state where we don't show dialogs.
29 24
      */
@@ -73,7 +68,6 @@ export function abstractMapStateToProps(state: Object): $Shape<Props> {
73 68
     return {
74 69
         _component: stateFeaturesBaseDialog.component,
75 70
         _componentProps: stateFeaturesBaseDialog.componentProps,
76
-        _rawDialog: stateFeaturesBaseDialog.rawDialog,
77 71
         _reducedUI: reducedUI
78 72
     };
79 73
 }

+ 0
- 5
react/features/base/dialog/components/web/DialogContainer.js 파일 보기

@@ -20,10 +20,6 @@ class DialogContainer extends AbstractDialogContainer {
20 20
      * @returns {ReactElement}
21 21
      */
22 22
     render() {
23
-        if (this.props._rawDialog) {
24
-            return this._renderDialogContent();
25
-        }
26
-
27 23
         return (
28 24
             <ModalTransition>
29 25
                 { this._renderDialogContent() }
@@ -33,4 +29,3 @@ class DialogContainer extends AbstractDialogContainer {
33 29
 }
34 30
 
35 31
 export default connect(abstractMapStateToProps)(DialogContainer);
36
-

+ 2
- 4
react/features/base/dialog/reducer.js 파일 보기

@@ -21,8 +21,7 @@ ReducerRegistry.register('features/base/dialog', (state = {}, action) => {
21 21
         if (typeof component === 'undefined' || state.component === component) {
22 22
             return assign(state, {
23 23
                 component: undefined,
24
-                componentProps: undefined,
25
-                rawDialog: false
24
+                componentProps: undefined
26 25
             });
27 26
         }
28 27
         break;
@@ -31,8 +30,7 @@ ReducerRegistry.register('features/base/dialog', (state = {}, action) => {
31 30
     case OPEN_DIALOG:
32 31
         return assign(state, {
33 32
             component: action.component,
34
-            componentProps: action.componentProps,
35
-            rawDialog: action.rawDialog
33
+            componentProps: action.componentProps
36 34
         });
37 35
     }
38 36
 

Loading…
취소
저장