ソースを参照

[RN] Fix start recording dialog after dropbox changes

master
Bettenbuk Zoltan 7年前
コミット
e164a23cf0

react/features/base/dialog/components/DialogContent.native.js → react/features/base/dialog/components/DialogContent.js ファイルの表示

@@ -1,7 +1,8 @@
1 1
 // @flow
2 2
 
3 3
 import React, { Component } from 'react';
4
-import { Text, View } from 'react-native';
4
+
5
+import { Container, Text } from '../../react';
5 6
 
6 7
 import { dialog as styles } from './styles';
7 8
 
@@ -31,9 +32,9 @@ export default class DialogContent extends Component<Props> {
31 32
             : children;
32 33
 
33 34
         return (
34
-            <View style = { styles.dialogContainer }>
35
+            <Container style = { styles.dialogContainer }>
35 36
                 { childrenComponent }
36
-            </View>
37
+            </Container>
37 38
         );
38 39
     }
39 40
 }

+ 0
- 0
react/features/base/dialog/components/DialogContent.web.js ファイルの表示


react/features/base/dialog/components/styles.js → react/features/base/dialog/components/styles.native.js ファイルの表示


+ 5
- 0
react/features/base/dialog/components/styles.web.js ファイルの表示

@@ -0,0 +1,5 @@
1
+/**
2
+ * Placeholder styles for web to be able to use cross platform components
3
+ * unmodified such as {@code DialogContent}.
4
+ */
5
+export const dialog = {};

+ 3
- 2
react/features/recording/components/Recording/StartRecordingDialogContent.js ファイルの表示

@@ -7,6 +7,7 @@ import {
7 7
     createRecordingDialogEvent,
8 8
     sendAnalytics
9 9
 } from '../../../analytics';
10
+import { DialogContent } from '../../../base/dialog';
10 11
 import { translate } from '../../../base/i18n';
11 12
 import {
12 13
     Container,
@@ -98,9 +99,9 @@ class StartRecordingDialogContent extends Component<Props> {
98 99
      */
99 100
     _renderNoIntegrationsContent() {
100 101
         return (
101
-            <Container>
102
+            <DialogContent>
102 103
                 { this.props.t('recording.startRecordingBody') }
103
-            </Container>
104
+            </DialogContent>
104 105
         );
105 106
     }
106 107
 

読み込み中…
キャンセル
保存