Skip to content

Commit

Permalink
fixup! Add promo cards to HomeScene Pending close button functionality
Browse files Browse the repository at this point in the history
  • Loading branch information
Jon-edge committed Jan 11, 2024
1 parent 680468c commit bca3f70
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions src/components/ui4/PromoCardsUi4.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,8 @@ export const PromoCardsUi4 = (props: Props) => {
}, [])

return promos == null || promos.length === 0 ? null : (
<EdgeAnim style={{ height: theme.rem(10) }} enter={{ type: 'fadeInUp', distance: 110 }}>
<CarouselUi4 height={theme.rem(10)} width={screenWidth}>
<EdgeAnim style={{ height: theme.rem(11.5) }} enter={{ type: 'fadeInUp', distance: 110 }}>
<CarouselUi4 height={theme.rem(9.75)} width={screenWidth}>
{promos.map(promoInfo => (
<PromoCardUi4 navigation={navigation} promoInfo={promoInfo} key={getLocaleOrDefaultString(promoInfo.localeMessages)} />
))}
Expand Down
12 changes: 6 additions & 6 deletions src/components/ui4/scenes/HomeSceneUi4.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -143,18 +143,18 @@ export const HomeSceneUi4 = (props: Props) => {
/>
</EdgeAnim>
<SectionHeaderUi4 leftTitle={lstrings.title_markets} rightNode={lstrings.see_all} onRightPress={() => navigation.navigate('coinRanking', {})} />
<EdgeAnim style={[styles.homeRowContainer, { height: cardSize }]} enter={{ type: 'fadeInUp', distance: 30 }}>
<EdgeAnim enter={{ type: 'fadeInUp', distance: 30 }}>
<MarketsCardUi4 navigation={navigation} numRows={5} />
</EdgeAnim>
</>
{blogPosts == null || blogPosts.length === 0 ? null : (
<>
<SectionHeaderUi4 leftTitle={lstrings.title_learn} />
<CarouselUi4 height={theme.rem(13)} width={screenWidth}>
{blogPosts.map((blogPost, index) => (
<BlogCard blogPost={blogPost} key={`${JSON.stringify(blogPost.localeTitle)}-${index}`} />
))}
</CarouselUi4>
<CarouselUi4 height={theme.rem(13)} width={screenWidth}>
{blogPosts.map((blogPost, index) => (
<BlogCard blogPost={blogPost} key={`${JSON.stringify(blogPost.localeTitle)}-${index}`} />
))}
</CarouselUi4>
</>
)}
<SupportCardUi4 title={lstrings.title_support} body={lstrings.body_support} buttonText={lstrings.button_support} url={config.supportContactSite} />
Expand Down

0 comments on commit bca3f70

Please sign in to comment.