Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

[RN] Fix start recording dialog after dropbox changes

Bettenbuk Zoltane164a23cf064
diff --git a/react/features/base/dialog/components/DialogContent.native.js b/react/features/base/dialog/components/DialogContent.js
similarity index 84%
rename from react/features/base/dialog/components/DialogContent.native.js
rename to react/features/base/dialog/components/DialogContent.js
index c9da87f76a..a7a20d0216 100644
--- a/react/features/base/dialog/components/DialogContent.native.js
+++ b/react/features/base/dialog/components/DialogContent.js
@@ -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>
);
}
}
diff --git a/react/features/base/dialog/components/DialogContent.web.js b/react/features/base/dialog/components/DialogContent.web.js
deleted file mode 100644
index e69de29bb2..0000000000
diff --git a/react/features/base/dialog/components/styles.js b/react/features/base/dialog/components/styles.native.js
similarity index 100%
rename from react/features/base/dialog/components/styles.js
rename to react/features/base/dialog/components/styles.native.js
diff --git a/react/features/base/dialog/components/styles.web.js b/react/features/base/dialog/components/styles.web.js
new file mode 100644
index 0000000000..ee4235f586
--- /dev/null
+++ b/react/features/base/dialog/components/styles.web.js
@@ -0,0 +1,5 @@
+/**
+ * Placeholder styles for web to be able to use cross platform components
+ * unmodified such as {@code DialogContent}.
+ */
+export const dialog = {};
diff --git a/react/features/recording/components/Recording/StartRecordingDialogContent.js b/react/features/recording/components/Recording/StartRecordingDialogContent.js
index 992d80f5ee..98ed7ffb66 100644
--- a/react/features/recording/components/Recording/StartRecordingDialogContent.js
+++ b/react/features/recording/components/Recording/StartRecordingDialogContent.js
@@ -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>
);
}