Skip to content
Snippets Groups Projects
Unverified Commit f63fc921 authored by AYUSHKUMAR_21JE0209's avatar AYUSHKUMAR_21JE0209 Committed by GitHub
Browse files

fix: "Status" column values in "Custom Status" page table not translated (#34857)

parent e65db191
No related branches found
No related tags found
No related merge requests found
---
'@rocket.chat/meteor': patch
---
Fixes an issue where custom status' values in the custom status page table were not being properly translated
import type { IUserStatus } from '@rocket.chat/core-typings';
import type { CSSProperties, ReactElement } from 'react';
import { useTranslation } from 'react-i18next';
import { GenericTableRow, GenericTableCell } from '../../../../components/GenericTable';
import MarkdownText from '../../../../components/MarkdownText';
......@@ -13,6 +14,7 @@ type CustomUserStatusRowProps = {
const CustomUserStatusRow = ({ status, onClick }: CustomUserStatusRowProps): ReactElement => {
const { _id, name, statusType } = status;
const { t } = useTranslation();
return (
<GenericTableRow
......@@ -28,7 +30,7 @@ const CustomUserStatusRow = ({ status, onClick }: CustomUserStatusRowProps): Rea
<MarkdownText content={name} parseEmoji={true} variant='inline' />
</GenericTableCell>
<GenericTableCell fontScale='p2' color='default' style={style}>
{statusType}
{t(statusType)}
</GenericTableCell>
</GenericTableRow>
);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment