From 5b7dabb83e76e4571f4fb256249b354270edb881 Mon Sep 17 00:00:00 2001 From: MartinSchoeler Date: Mon, 21 Oct 2024 11:14:10 -0300 Subject: [PATCH 1/2] fix: banner breaking ui when the title is not a string --- packages/fuselage/src/components/Banner/Banner.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/fuselage/src/components/Banner/Banner.tsx b/packages/fuselage/src/components/Banner/Banner.tsx index 1fa70597dd..e3d139c073 100644 --- a/packages/fuselage/src/components/Banner/Banner.tsx +++ b/packages/fuselage/src/components/Banner/Banner.tsx @@ -96,7 +96,7 @@ const Banner = ({ )}
- {title && ( + {title && typeof title === 'string' && (
{title}
)} {children} From 6facefa96c3e58cbc681cac9cf8e0229450a1dc7 Mon Sep 17 00:00:00 2001 From: Martin Schoeler Date: Mon, 21 Oct 2024 11:19:40 -0300 Subject: [PATCH 2/2] Create little-trains-applaud.md --- .changeset/little-trains-applaud.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/little-trains-applaud.md diff --git a/.changeset/little-trains-applaud.md b/.changeset/little-trains-applaud.md new file mode 100644 index 0000000000..56af0354e9 --- /dev/null +++ b/.changeset/little-trains-applaud.md @@ -0,0 +1,5 @@ +--- +"@rocket.chat/fuselage": patch +--- + +Fixes banner breaking ui when the `title` prop is not a string