From bca3f7032d00c0b1cb30b42942efd5c4d4251a31 Mon Sep 17 00:00:00 2001 From: Jon Tzeng Date: Thu, 11 Jan 2024 15:27:40 -0800 Subject: [PATCH] fixup! Add promo cards to HomeScene Pending close button functionality --- src/components/ui4/PromoCardsUi4.tsx | 4 ++-- src/components/ui4/scenes/HomeSceneUi4.tsx | 12 ++++++------ 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/components/ui4/PromoCardsUi4.tsx b/src/components/ui4/PromoCardsUi4.tsx index e92621a3cfb..90e2111458b 100644 --- a/src/components/ui4/PromoCardsUi4.tsx +++ b/src/components/ui4/PromoCardsUi4.tsx @@ -100,8 +100,8 @@ export const PromoCardsUi4 = (props: Props) => { }, []) return promos == null || promos.length === 0 ? null : ( - - + + {promos.map(promoInfo => ( ))} diff --git a/src/components/ui4/scenes/HomeSceneUi4.tsx b/src/components/ui4/scenes/HomeSceneUi4.tsx index 34acd1223e5..880ec5000b8 100644 --- a/src/components/ui4/scenes/HomeSceneUi4.tsx +++ b/src/components/ui4/scenes/HomeSceneUi4.tsx @@ -143,18 +143,18 @@ export const HomeSceneUi4 = (props: Props) => { /> navigation.navigate('coinRanking', {})} /> - + {blogPosts == null || blogPosts.length === 0 ? null : ( <> - - {blogPosts.map((blogPost, index) => ( - - ))} - + + {blogPosts.map((blogPost, index) => ( + + ))} + )}