From 14d0c6daab2534bba1799b5575274538bdb25ca6 Mon Sep 17 00:00:00 2001 From: Lucas Temponi Date: Fri, 22 Nov 2024 11:41:44 -0300 Subject: [PATCH] feat(Translation): fix types --- .../AnnouncementsTimeline/AnnouncementsTimeline.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/plugins/announcements/src/components/AnnouncementsTimeline/AnnouncementsTimeline.tsx b/plugins/announcements/src/components/AnnouncementsTimeline/AnnouncementsTimeline.tsx index d2628be3..1ded9b1c 100644 --- a/plugins/announcements/src/components/AnnouncementsTimeline/AnnouncementsTimeline.tsx +++ b/plugins/announcements/src/components/AnnouncementsTimeline/AnnouncementsTimeline.tsx @@ -92,9 +92,10 @@ export const AnnouncementsTimeline = ({ } if (!announcements || announcements.count === 0) - return t('announcementsTimeline.noAnnouncements'); + return <>{t('announcementsTimeline.noAnnouncements')}; - if (error) return `${t('announcementsTimeline.error')}: ${error.message}`; + if (error) + return <>{`${t('announcementsTimeline.error')}: ${error.message}`}; return (