Revert "add(speaker-stats): translation and comments for toggle facial expressions button"

This reverts commit 90f086f765.
This commit is contained in:
Calinteodor 2022-02-01 16:52:42 +02:00 committed by GitHub
parent fcdc56bd97
commit 7d228d6366
3 changed files with 2 additions and 12 deletions

View File

@ -928,7 +928,6 @@
"angry": "Angry",
"disgusted": "Disgusted",
"fearful": "Fearful",
"hideFacialExpressions": "Hide facial expressions",
"happy": "Happy",
"hours": "{{count}}h",
"minutes": "{{count}}m",

View File

@ -127,10 +127,6 @@ class SpeakerStats extends Component<Props> {
_onToggleFacialExpressions: () => void;
/**
* Toggle the facial expressions grid from speaker stats.
*
* @returns {void}
* @protected
*/
_onToggleFacialExpressions() {
this.props.dispatch(toggleFacialExpressions());

View File

@ -1,7 +1,6 @@
// @flow
import { makeStyles } from '@material-ui/core/styles';
import React from 'react';
import { useTranslation } from 'react-i18next';
import {
Icon,
@ -33,7 +32,7 @@ const useStyles = makeStyles(theme => {
});
/**
* The type of the React {@code Component} props of {@link ToggleFacialExpressionsButton}.
* The type of the React {@code Component} props of {@link SpeakerStatsSearch}.
*/
type Props = {
@ -50,13 +49,9 @@ type Props = {
};
/**
* React component for toggling facial expressions grid.
*
* @returns {React$Element<any>}
*/
export default function ToggleFacialExpressionsButton({ onClick, showFacialExpressions }: Props) {
const classes = useStyles();
const { t } = useTranslation();
const onClickCallback = React.useCallback(() => {
onClick();
@ -64,7 +59,7 @@ export default function ToggleFacialExpressionsButton({ onClick, showFacialExpre
return (
<Tooltip
content = { t(`speakerStats.${showFacialExpressions ? 'hide' : 'show'}FacialExpressions`) }
content = { `${showFacialExpressions ? 'Hide' : 'Show'} facial expressions` }
position = { 'top' } >
<div
className = { classes.expandButton }