Skip to content

Commit 67f3ae7

Browse files
committed
fix(banner): update goodbye to link to kb
1 parent aacb0a4 commit 67f3ae7

1 file changed

Lines changed: 5 additions & 13 deletions

File tree

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

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { breakpointTinyTablet } from 'common/constants'
55
import { breakpointLargeHandset } from 'common/constants'
66
import { useTranslation } from 'next-i18next'
77
import { ArrowRightIcon } from '@ui/icons/ArrowRightIcon'
8-
import Link from 'next/link'
8+
99
const bannerBackground = css`
1010
width: 100%;
1111
background: #008078;
@@ -58,9 +58,7 @@ const bannerBackground = css`
5858
`
5959

6060
export const BannerGoodbye = () => {
61-
const { t, i18n } = useTranslation()
62-
const currentLanguage = i18n.language.toLowerCase()
63-
const linkToFarewell = currentLanguage === 'en' || currentLanguage === 'en-us'
61+
const { t } = useTranslation()
6462

6563
return (
6664
<div className={bannerBackground}>
@@ -72,15 +70,9 @@ export const BannerGoodbye = () => {
7270
'shutdown:banner-copy-short',
7371
'After much thought, we made the difficult decision to close Pocket. Thanks for being part of the journey.'
7472
)}
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-
)}
73+
<a href="https://support.mozilla.org/en-US/kb/future-of-pocket">
74+
<ArrowRightIcon /> {t('shutdown:banner-readmore', 'Read more')}
75+
</a>
8476
</p>
8577
</div>
8678
</div>

0 commit comments

Comments
 (0)