Przeglądaj źródła

[RN] Don't show a beta label for recordings

master
Saúl Ibarra Corretgé 7 lat temu
rodzic
commit
843f08f38e

+ 0
- 23
react/features/recording/components/LiveStream/AbstractLiveStreamButton.js Wyświetl plik

@@ -1,10 +1,8 @@
1 1
 // @flow
2 2
 
3
-import React from 'react';
4 3
 import { openDialog } from '../../../base/dialog';
5 4
 import { JitsiRecordingConstants } from '../../../base/lib-jitsi-meet';
6 5
 import { getLocalParticipant } from '../../../base/participants';
7
-import { Container, Text } from '../../../base/react';
8 6
 import {
9 7
     AbstractButton,
10 8
     type AbstractButtonProps
@@ -14,7 +12,6 @@ import { getActiveSession } from '../../functions';
14 12
 
15 13
 import StartLiveStreamDialog from './StartLiveStreamDialog';
16 14
 import StopLiveStreamDialog from './StopLiveStreamDialog';
17
-import styles from './styles';
18 15
 
19 16
 /**
20 17
  * The type of the React {@code Component} props of
@@ -47,26 +44,6 @@ export default class AbstractLiveStreamButton<P: Props>
47 44
     label = 'dialog.startLiveStreaming';
48 45
     toggledLabel = 'dialog.stopLiveStreaming';
49 46
 
50
-    /**
51
-     * Helper function to be implemented by subclasses, which returns
52
-     * a React Element to display (a beta tag) at the end of the button.
53
-     *
54
-     * @override
55
-     * @protected
56
-     * @returns {ReactElement}
57
-     */
58
-    _getElementAfter() {
59
-        return (
60
-            <Container
61
-                className = { 'beta-tag' }
62
-                style = { styles && { ...styles.betaTag } }>
63
-                <Text style = { styles && { ...styles.betaTagText } }>
64
-                    { this.props.t('recording.beta') }
65
-                </Text>
66
-            </Container>
67
-        );
68
-    }
69
-
70 47
     /**
71 48
      * Handles clicking / pressing the button.
72 49
      *

+ 21
- 0
react/features/recording/components/LiveStream/LiveStreamButton.web.js Wyświetl plik

@@ -1,8 +1,10 @@
1 1
 // @flow
2 2
 
3
+import React from 'react';
3 4
 import { connect } from 'react-redux';
4 5
 
5 6
 import { translate } from '../../../base/i18n';
7
+import { Container, Text } from '../../../base/react';
6 8
 
7 9
 import AbstractLiveStreamButton, {
8 10
     _mapStateToProps as _abstractMapStateToProps,
@@ -55,6 +57,25 @@ class LiveStreamButton extends AbstractLiveStreamButton<Props> {
55 57
         this.tooltip = newProps._liveStreamDisabledTooltipKey;
56 58
     }
57 59
 
60
+    /**
61
+     * Helper function to be implemented by subclasses, which returns
62
+     * a React Element to display (a beta tag) at the end of the button.
63
+     *
64
+     * @override
65
+     * @protected
66
+     * @returns {ReactElement}
67
+     */
68
+    _getElementAfter() {
69
+        return (
70
+            <Container
71
+                className = { 'beta-tag' }>
72
+                <Text>
73
+                    { this.props.t('recording.beta') }
74
+                </Text>
75
+            </Container>
76
+        );
77
+    }
78
+
58 79
     /**
59 80
      * Helper function to be implemented by subclasses, which must return a
60 81
      * boolean value indicating if this button is disabled or not.

Ładowanie…
Anuluj
Zapisz