From 66702f1c56df01d612e396bec8caf4cf7348da71 Mon Sep 17 00:00:00 2001 From: Faizan Shoukat Abbasi Date: Fri, 24 Apr 2026 00:24:29 +0500 Subject: [PATCH 1/8] 88447: Home - No expected banner shown after running a snippet --- src/components/BaseWidgetItem.tsx | 6 +- src/languages/de.ts | 6 ++ src/languages/en.ts | 6 ++ src/languages/es.ts | 6 ++ src/languages/fr.ts | 6 ++ src/languages/it.ts | 6 ++ src/languages/ja.ts | 6 ++ src/languages/nl.ts | 6 ++ src/languages/pl.ts | 6 ++ src/languages/pt-BR.ts | 6 ++ src/languages/zh-hans.ts | 6 ++ .../hooks/useTimeSensitiveEarlyDiscount.ts | 59 +++++++++++++++++++ src/pages/home/TimeSensitiveSection/index.tsx | 32 ++++++---- .../items/EarlyDiscount.tsx | 37 ++++++++++++ 14 files changed, 181 insertions(+), 13 deletions(-) create mode 100644 src/pages/home/TimeSensitiveSection/hooks/useTimeSensitiveEarlyDiscount.ts create mode 100644 src/pages/home/TimeSensitiveSection/items/EarlyDiscount.tsx diff --git a/src/components/BaseWidgetItem.tsx b/src/components/BaseWidgetItem.tsx index d027feced2ea..63a5d5507124 100644 --- a/src/components/BaseWidgetItem.tsx +++ b/src/components/BaseWidgetItem.tsx @@ -27,6 +27,9 @@ type BaseWidgetItemProps = { /** Secondary subtitle text */ subtitle?: string; + /** Optional supporting text rendered below the title (e.g. live countdowns) */ + supportingText?: string; + /** Text for the CTA button */ ctaText: string; @@ -40,7 +43,7 @@ type BaseWidgetItemProps = { buttonProps?: Partial; }; -function BaseWidgetItem({icon, iconBackgroundColor, title, subtitle, ctaText, onCtaPress, iconFill, buttonProps}: BaseWidgetItemProps) { +function BaseWidgetItem({icon, iconBackgroundColor, title, subtitle, supportingText, ctaText, onCtaPress, iconFill, buttonProps}: BaseWidgetItemProps) { const styles = useThemeStyles(); const theme = useTheme(); const {shouldUseNarrowLayout} = useResponsiveLayout(); @@ -65,6 +68,7 @@ function BaseWidgetItem({icon, iconBackgroundColor, title, subtitle, ctaText, on {!!subtitle && {subtitle}} {title} + {!!supportingText && {supportingText}}