From 82fa1eb8700f3419ad2c19d1b03734169844472f Mon Sep 17 00:00:00 2001 From: ilaydadastan Date: Fri, 29 Mar 2024 16:38:30 +0200 Subject: [PATCH] fix(chat): added translation function --- react/features/chat/components/web/PrivateMessageButton.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/react/features/chat/components/web/PrivateMessageButton.tsx b/react/features/chat/components/web/PrivateMessageButton.tsx index 1e1bf52319bd..01a721351d67 100644 --- a/react/features/chat/components/web/PrivateMessageButton.tsx +++ b/react/features/chat/components/web/PrivateMessageButton.tsx @@ -1,4 +1,5 @@ import React, { useCallback } from 'react'; +import { useTranslation } from 'react-i18next'; import { useDispatch, useSelector } from 'react-redux'; import { makeStyles } from 'tss-react/mui'; @@ -46,6 +47,7 @@ const PrivateMessageButton = ({ participantID, isLobbyMessage, visible }: IProps const dispatch = useDispatch(); const participant = useSelector((state: IReduxState) => getParticipantById(state, participantID)); const isVisible = useSelector((state: IReduxState) => getFeatureFlag(state, CHAT_ENABLED, true)) ?? visible; + const { t } = useTranslation(); const handleClick = useCallback(() => { if (isLobbyMessage) { @@ -61,7 +63,7 @@ const PrivateMessageButton = ({ participantID, isLobbyMessage, visible }: IProps return (