From 49092af267b47121be0659308636a2c72dac4366 Mon Sep 17 00:00:00 2001 From: gabriellsh Date: Fri, 21 Jun 2024 16:32:31 -0300 Subject: [PATCH] fix aria-label --- .../client/components/InfoPanel/RetentionPolicyCallout.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/meteor/client/components/InfoPanel/RetentionPolicyCallout.tsx b/apps/meteor/client/components/InfoPanel/RetentionPolicyCallout.tsx index d55cac747add..c27234f6d0db 100644 --- a/apps/meteor/client/components/InfoPanel/RetentionPolicyCallout.tsx +++ b/apps/meteor/client/components/InfoPanel/RetentionPolicyCallout.tsx @@ -1,14 +1,16 @@ import type { IRoom } from '@rocket.chat/core-typings'; import { Callout } from '@rocket.chat/fuselage'; +import { useTranslation } from '@rocket.chat/ui-contexts'; import React from 'react'; import { usePruneWarningMessage } from '../../hooks/usePruneWarningMessage'; const RetentionPolicyCallout = ({ room }: { room: IRoom }) => { const message = usePruneWarningMessage(room); + const t = useTranslation(); return ( - +

{message}