From 7d228d636680ffd5ce0476c548e8b2166a8cff10 Mon Sep 17 00:00:00 2001 From: Calinteodor Date: Tue, 1 Feb 2022 16:52:42 +0200 Subject: [PATCH] Revert "add(speaker-stats): translation and comments for toggle facial expressions button" This reverts commit 90f086f76500fafd49380f75a43202283bc89e34. --- lang/main.json | 1 - .../speaker-stats/components/web/SpeakerStats.js | 4 ---- .../components/web/ToggleFacialExpressionsButton.js | 9 ++------- 3 files changed, 2 insertions(+), 12 deletions(-) diff --git a/lang/main.json b/lang/main.json index a9e0cf6b6..67a9432f9 100644 --- a/lang/main.json +++ b/lang/main.json @@ -928,7 +928,6 @@ "angry": "Angry", "disgusted": "Disgusted", "fearful": "Fearful", - "hideFacialExpressions": "Hide facial expressions", "happy": "Happy", "hours": "{{count}}h", "minutes": "{{count}}m", diff --git a/react/features/speaker-stats/components/web/SpeakerStats.js b/react/features/speaker-stats/components/web/SpeakerStats.js index f5efbed1c..a52e40c05 100644 --- a/react/features/speaker-stats/components/web/SpeakerStats.js +++ b/react/features/speaker-stats/components/web/SpeakerStats.js @@ -127,10 +127,6 @@ class SpeakerStats extends Component { _onToggleFacialExpressions: () => void; /** - * Toggle the facial expressions grid from speaker stats. - * - * @returns {void} - * @protected */ _onToggleFacialExpressions() { this.props.dispatch(toggleFacialExpressions()); diff --git a/react/features/speaker-stats/components/web/ToggleFacialExpressionsButton.js b/react/features/speaker-stats/components/web/ToggleFacialExpressionsButton.js index 9ccb431a0..dd7287dbb 100644 --- a/react/features/speaker-stats/components/web/ToggleFacialExpressionsButton.js +++ b/react/features/speaker-stats/components/web/ToggleFacialExpressionsButton.js @@ -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} */ 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 (