feat(toolbox) removed unused BetaTag component and styles
This commit is contained in:
parent
04794e9fdb
commit
744bcc3b66
|
@ -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);
|
|
@ -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 './_';
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue