瀏覽代碼

fix(rn,lobby) make sure the enable dialog follows the theme color

j8
Saúl Ibarra Corretgé 4 年之前
父節點
當前提交
6740b0861e
共有 1 個文件被更改,包括 7 次插入1 次删除
  1. 7
    1
      react/features/lobby/components/native/EnableLobbyModeDialog.js

+ 7
- 1
react/features/lobby/components/native/EnableLobbyModeDialog.js 查看文件

@@ -7,12 +7,18 @@ import { ColorSchemeRegistry } from '../../../base/color-scheme';
7 7
 import { CustomSubmitDialog } from '../../../base/dialog';
8 8
 import { translate } from '../../../base/i18n';
9 9
 import { connect } from '../../../base/redux';
10
+import { StyleType } from '../../../base/styles';
10 11
 import { toggleLobbyMode } from '../../actions';
11 12
 
12 13
 import styles from './styles';
13 14
 
14 15
 type Props = {
15 16
 
17
+    /**
18
+     * The color-schemed stylesheet of the feature.
19
+     */
20
+    _dialogStyles: StyleType,
21
+
16 22
     /**
17 23
      * The Redux Dispatch function.
18 24
      */
@@ -51,7 +57,7 @@ class EnableLobbyModeDialog extends PureComponent<Props> {
51 57
                 onSubmit = { this._onEnableLobbyMode }
52 58
                 titleKey = 'lobby.dialogTitle'>
53 59
                 <View style = { styles.formWrapper }>
54
-                    <Text>
60
+                    <Text style = { this.props._dialogStyles.text } >
55 61
                         { this.props.t('lobby.enableDialogText') }
56 62
                     </Text>
57 63
                 </View>

Loading…
取消
儲存