From b3c9bc58e829cd31208d38b0c2fd9902e7098d3c Mon Sep 17 00:00:00 2001 From: Bernhard Owen Josephus Date: Tue, 11 Jun 2024 21:55:22 +0800 Subject: [PATCH 1/2] add flex1 style --- src/pages/home/report/SystemChatReportFooterMessage.tsx | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/pages/home/report/SystemChatReportFooterMessage.tsx b/src/pages/home/report/SystemChatReportFooterMessage.tsx index 449fbb212cf1..21050fbd5031 100644 --- a/src/pages/home/report/SystemChatReportFooterMessage.tsx +++ b/src/pages/home/report/SystemChatReportFooterMessage.tsx @@ -70,7 +70,14 @@ function SystemChatReportFooterMessage({choice, policies, activePolicyID}: Syste containerStyles={[styles.chatFooterBanner]} shouldShowIcon icon={Expensicons.Lightbulb} - content={{content}} + content={ + + {content} + + } /> ); } From 21c0c6f9a767174d40283243ea7406a9aed2cea1 Mon Sep 17 00:00:00 2001 From: Bernhard Owen Josephus Date: Tue, 11 Jun 2024 21:55:30 +0800 Subject: [PATCH 2/2] don't render the text when text is empty --- src/components/Banner.tsx | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/src/components/Banner.tsx b/src/components/Banner.tsx index 4e5c238fd692..404a92093119 100644 --- a/src/components/Banner.tsx +++ b/src/components/Banner.tsx @@ -93,17 +93,18 @@ function Banner({ )} {content && content} - {shouldRenderHTML && text ? ( - - ) : ( - - {text} - - )} + {text && + (shouldRenderHTML ? ( + + ) : ( + + {text} + + ))} {shouldShowCloseButton && !!onClose && (