mirror of
https://gitcode.com/GitHub_Trending/ji/jitsi-meet.git
synced 2026-05-14 12:47:47 +00:00
[RN] Add ExpandedLabel
This commit is contained in:
committed by
Saúl Ibarra Corretgé
parent
d604cdfe27
commit
e5cc732b72
@@ -0,0 +1,25 @@
|
||||
// @flow
|
||||
|
||||
import { translate } from '../../base/i18n';
|
||||
import { ExpandedLabel, type Props as AbstractProps } from '../../base/label';
|
||||
|
||||
type Props = AbstractProps & {
|
||||
t: Function
|
||||
}
|
||||
|
||||
/**
|
||||
* A react {@code Component} that implements an expanded label as tooltip-like
|
||||
* component to explain the meaning of the {@code TranscribingLabel}.
|
||||
*/
|
||||
class TranscribingExpandedLabel extends ExpandedLabel<Props> {
|
||||
/**
|
||||
* Returns the label specific text of this {@code ExpandedLabel}.
|
||||
*
|
||||
* @returns {string}
|
||||
*/
|
||||
_getLabel() {
|
||||
return this.props.t('transcribing.expandedLabel');
|
||||
}
|
||||
}
|
||||
|
||||
export default translate(TranscribingExpandedLabel);
|
||||
Reference in New Issue
Block a user