From 843f08f38e44158437c246baafdc7482984eb26c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sa=C3=BAl=20Ibarra=20Corretg=C3=A9?= Date: Fri, 12 Oct 2018 18:16:20 +0200 Subject: [PATCH] [RN] Don't show a beta label for recordings --- .../LiveStream/AbstractLiveStreamButton.js | 23 ------------------- .../LiveStream/LiveStreamButton.web.js | 21 +++++++++++++++++ 2 files changed, 21 insertions(+), 23 deletions(-) diff --git a/react/features/recording/components/LiveStream/AbstractLiveStreamButton.js b/react/features/recording/components/LiveStream/AbstractLiveStreamButton.js index d576a27df..02cdb51cb 100644 --- a/react/features/recording/components/LiveStream/AbstractLiveStreamButton.js +++ b/react/features/recording/components/LiveStream/AbstractLiveStreamButton.js @@ -1,10 +1,8 @@ // @flow -import React from 'react'; import { openDialog } from '../../../base/dialog'; import { JitsiRecordingConstants } from '../../../base/lib-jitsi-meet'; import { getLocalParticipant } from '../../../base/participants'; -import { Container, Text } from '../../../base/react'; import { AbstractButton, type AbstractButtonProps @@ -14,7 +12,6 @@ import { getActiveSession } from '../../functions'; import StartLiveStreamDialog from './StartLiveStreamDialog'; import StopLiveStreamDialog from './StopLiveStreamDialog'; -import styles from './styles'; /** * The type of the React {@code Component} props of @@ -47,26 +44,6 @@ export default class AbstractLiveStreamButton label = 'dialog.startLiveStreaming'; toggledLabel = 'dialog.stopLiveStreaming'; - /** - * Helper function to be implemented by subclasses, which returns - * a React Element to display (a beta tag) at the end of the button. - * - * @override - * @protected - * @returns {ReactElement} - */ - _getElementAfter() { - return ( - - - { this.props.t('recording.beta') } - - - ); - } - /** * Handles clicking / pressing the button. * diff --git a/react/features/recording/components/LiveStream/LiveStreamButton.web.js b/react/features/recording/components/LiveStream/LiveStreamButton.web.js index c0335d882..7d4346a38 100644 --- a/react/features/recording/components/LiveStream/LiveStreamButton.web.js +++ b/react/features/recording/components/LiveStream/LiveStreamButton.web.js @@ -1,8 +1,10 @@ // @flow +import React from 'react'; import { connect } from 'react-redux'; import { translate } from '../../../base/i18n'; +import { Container, Text } from '../../../base/react'; import AbstractLiveStreamButton, { _mapStateToProps as _abstractMapStateToProps, @@ -55,6 +57,25 @@ class LiveStreamButton extends AbstractLiveStreamButton { this.tooltip = newProps._liveStreamDisabledTooltipKey; } + /** + * Helper function to be implemented by subclasses, which returns + * a React Element to display (a beta tag) at the end of the button. + * + * @override + * @protected + * @returns {ReactElement} + */ + _getElementAfter() { + return ( + + + { this.props.t('recording.beta') } + + + ); + } + /** * Helper function to be implemented by subclasses, which must return a * boolean value indicating if this button is disabled or not.