Skip to content

Commit e6e8d5b

Browse files
committed
fix(farwell): banner on all w/ conditional link
1 parent f906eb1 commit e6e8d5b

1 file changed

Lines changed: 13 additions & 6 deletions

File tree

clients/web/src/components/banner/goodbye.tsx

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,9 @@ const bannerBackground = css`
6060
export const BannerGoodbye = () => {
6161
const { t, i18n } = useTranslation()
6262
const currentLanguage = i18n.language.toLowerCase()
63-
const showBanner = currentLanguage === 'en' || currentLanguage === 'en-us'
64-
return showBanner ? (
63+
const linkToFarewell = currentLanguage === 'en' || currentLanguage === 'en-us'
64+
65+
return (
6566
<div className={bannerBackground}>
6667
<div className="inner page-container">
6768
<h3>{t('shutdown:banner-header', 'Pocket is shutting down')}</h3>
@@ -71,12 +72,18 @@ export const BannerGoodbye = () => {
7172
'shutdown:banner-copy',
7273
'After much thought, we’ve made the difficult decision to close Pocket. Thanks for being part of the journey. Find out about refunds and how to export your content in our support article.'
7374
)}
74-
<Link className="call-to-action" href="/farewell">
75-
<ArrowRightIcon /> {t('shutdown:banner-readmore', 'Read more')}
76-
</Link>
75+
{linkToFarewell ? (
76+
<Link className="call-to-action" href="/farewell">
77+
<ArrowRightIcon /> {t('shutdown:banner-readmore', 'Read more')}
78+
</Link>
79+
) : (
80+
<a href="https://support.mozilla.org/en-US/kb/future-of-pocket">
81+
<ArrowRightIcon /> {t('shutdown:banner-readmore', 'Read more')}
82+
</a>
83+
)}
7784
</p>
7885
</div>
7986
</div>
8087
</div>
81-
) : null
88+
)
8289
}

0 commit comments

Comments
 (0)