[RN] Fix start recording dialog after dropbox changes

This commit is contained in:
Bettenbuk Zoltan 2018-10-03 12:50:11 +02:00 committed by Hristo Terezov
parent 61456b0d99
commit e164a23cf0
5 changed files with 12 additions and 5 deletions

View File

@ -1,7 +1,8 @@
// @flow
import React, { Component } from 'react';
import { Text, View } from 'react-native';
import { Container, Text } from '../../react';
import { dialog as styles } from './styles';
@ -31,9 +32,9 @@ export default class DialogContent extends Component<Props> {
: children;
return (
<View style = { styles.dialogContainer }>
<Container style = { styles.dialogContainer }>
{ childrenComponent }
</View>
</Container>
);
}
}

View File

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

View File

@ -7,6 +7,7 @@ import {
createRecordingDialogEvent,
sendAnalytics
} from '../../../analytics';
import { DialogContent } from '../../../base/dialog';
import { translate } from '../../../base/i18n';
import {
Container,
@ -98,9 +99,9 @@ class StartRecordingDialogContent extends Component<Props> {
*/
_renderNoIntegrationsContent() {
return (
<Container>
<DialogContent>
{ this.props.t('recording.startRecordingBody') }
</Container>
</DialogContent>
);
}