feat(toolbox) removed unused BetaTag component and styles

This commit is contained in:
Calin Chitu 2022-02-07 16:58:29 +02:00 committed by Calinteodor
parent 04794e9fdb
commit 744bcc3b66
3 changed files with 0 additions and 54 deletions

View File

@ -1,40 +0,0 @@
// @flow
import React, { Component } from 'react';
import { translate } from '../../i18n';
import { Container, Text } from '../../react';
type Props = {
/**
* Invoked to obtain translated strings.
*/
t: Function
};
/**
* Creates a ReactElement for showing a ToolboxItem is for a beta feature.
*
* @augments {Component}
*/
class BetaTag extends Component<Props> {
/**
* Implements React's {@link Component#render()}.
*
* @inheritdoc
* @returns {ReactElement}
*/
render() {
return (
<Container className = 'beta-tag'>
<Text>
{ this.props.t('recording.beta') }
</Text>
</Container>
);
}
}
export default translate(BetaTag);

View File

@ -5,5 +5,4 @@ export { default as AbstractButton } from './AbstractButton';
export type { Props as AbstractButtonProps } from './AbstractButton';
export { default as AbstractHangupButton } from './AbstractHangupButton';
export { default as AbstractVideoMuteButton } from './AbstractVideoMuteButton';
export { default as BetaTag } from './BetaTag';
export * from './_';

View File

@ -25,19 +25,6 @@ export const TOUCHABLE_UNDERLAY = ColorPalette.lightGrey;
* The styles of the React {@code Components} of LiveStream.
*/
export default createStyleSheet({
betaTag: {
backgroundColor: ColorPalette.darkGrey,
borderRadius: 2,
marginLeft: 16,
opacity: 0.90,
paddingLeft: 6,
paddingRight: 6
},
betaTagText: {
color: ColorPalette.white,
fontWeight: 'bold'
},
/**
* Generic component to wrap form sections into achieving a unified look.