Browse Source

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

master
Saúl Ibarra Corretgé 7 years ago
parent
commit
843f08f38e

+ 0
- 23
react/features/recording/components/LiveStream/AbstractLiveStreamButton.js View File

1
 // @flow
1
 // @flow
2
 
2
 
3
-import React from 'react';
4
 import { openDialog } from '../../../base/dialog';
3
 import { openDialog } from '../../../base/dialog';
5
 import { JitsiRecordingConstants } from '../../../base/lib-jitsi-meet';
4
 import { JitsiRecordingConstants } from '../../../base/lib-jitsi-meet';
6
 import { getLocalParticipant } from '../../../base/participants';
5
 import { getLocalParticipant } from '../../../base/participants';
7
-import { Container, Text } from '../../../base/react';
8
 import {
6
 import {
9
     AbstractButton,
7
     AbstractButton,
10
     type AbstractButtonProps
8
     type AbstractButtonProps
14
 
12
 
15
 import StartLiveStreamDialog from './StartLiveStreamDialog';
13
 import StartLiveStreamDialog from './StartLiveStreamDialog';
16
 import StopLiveStreamDialog from './StopLiveStreamDialog';
14
 import StopLiveStreamDialog from './StopLiveStreamDialog';
17
-import styles from './styles';
18
 
15
 
19
 /**
16
 /**
20
  * The type of the React {@code Component} props of
17
  * The type of the React {@code Component} props of
47
     label = 'dialog.startLiveStreaming';
44
     label = 'dialog.startLiveStreaming';
48
     toggledLabel = 'dialog.stopLiveStreaming';
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
      * Handles clicking / pressing the button.
48
      * Handles clicking / pressing the button.
72
      *
49
      *

+ 21
- 0
react/features/recording/components/LiveStream/LiveStreamButton.web.js View File

1
 // @flow
1
 // @flow
2
 
2
 
3
+import React from 'react';
3
 import { connect } from 'react-redux';
4
 import { connect } from 'react-redux';
4
 
5
 
5
 import { translate } from '../../../base/i18n';
6
 import { translate } from '../../../base/i18n';
7
+import { Container, Text } from '../../../base/react';
6
 
8
 
7
 import AbstractLiveStreamButton, {
9
 import AbstractLiveStreamButton, {
8
     _mapStateToProps as _abstractMapStateToProps,
10
     _mapStateToProps as _abstractMapStateToProps,
55
         this.tooltip = newProps._liveStreamDisabledTooltipKey;
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
      * Helper function to be implemented by subclasses, which must return a
80
      * Helper function to be implemented by subclasses, which must return a
60
      * boolean value indicating if this button is disabled or not.
81
      * boolean value indicating if this button is disabled or not.

Loading…
Cancel
Save