From 0bc4a89b11b5b7d56aed7b6979341a5711705dc4 Mon Sep 17 00:00:00 2001 From: ledouxm Date: Mon, 12 Aug 2024 09:34:37 +0200 Subject: [PATCH] feat: display report item on 3 rows --- packages/frontend/src/features/ReportList.tsx | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/packages/frontend/src/features/ReportList.tsx b/packages/frontend/src/features/ReportList.tsx index 59e817bd..749e0ddd 100644 --- a/packages/frontend/src/features/ReportList.tsx +++ b/packages/frontend/src/features/ReportList.tsx @@ -197,8 +197,6 @@ const ReportListItem = ({ const forText = report.applicantName ? uppercaseFirstLetterIf(`pour ${report.applicantName}`, !whereText) : null; const byText = uppercaseFirstLetterIf(`par ${report.redactedBy ?? report.user?.name ?? ""}`, !whereText && !forText); - const description = [whereText, forText, byText].filter(Boolean).join(" "); - return ( {new Date(report.meetDate).toLocaleDateString()} ) : null} - - {description} - + {whereText} + {forText} + {byText}