Skip to content

Commit

Permalink
fix(chat): added translation function
Browse files Browse the repository at this point in the history
  • Loading branch information
ilaydadastan authored and damencho committed Mar 29, 2024
1 parent d1590db commit 82fa1eb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion react/features/chat/components/web/PrivateMessageButton.tsx
Original file line number Diff line number Diff line change
@@ -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';

Expand Down Expand Up @@ -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) {
Expand All @@ -61,7 +63,7 @@ const PrivateMessageButton = ({ participantID, isLobbyMessage, visible }: IProps

return (
<Button
accessibilityLabel = 'toolbar.accessibilityLabel.privateMessage'
accessibilityLabel = { t('toolbar.accessibilityLabel.privateMessage') }
className = { classes.replyButton }
icon = { IconReply }
onClick = { handleClick }
Expand Down

0 comments on commit 82fa1eb

Please sign in to comment.