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

This commit is contained in:
Saúl Ibarra Corretgé 2021-02-12 15:55:32 +01:00 committed by Saúl Ibarra Corretgé
parent 65c56669c4
commit 6740b0861e
1 changed files with 7 additions and 1 deletions

View File

@ -7,12 +7,18 @@ import { ColorSchemeRegistry } from '../../../base/color-scheme';
import { CustomSubmitDialog } from '../../../base/dialog';
import { translate } from '../../../base/i18n';
import { connect } from '../../../base/redux';
import { StyleType } from '../../../base/styles';
import { toggleLobbyMode } from '../../actions';
import styles from './styles';
type Props = {
/**
* The color-schemed stylesheet of the feature.
*/
_dialogStyles: StyleType,
/**
* The Redux Dispatch function.
*/
@ -51,7 +57,7 @@ class EnableLobbyModeDialog extends PureComponent<Props> {
onSubmit = { this._onEnableLobbyMode }
titleKey = 'lobby.dialogTitle'>
<View style = { styles.formWrapper }>
<Text>
<Text style = { this.props._dialogStyles.text } >
{ this.props.t('lobby.enableDialogText') }
</Text>
</View>