aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/Footer
diff options
context:
space:
mode:
authorArmand Philippot <git@armandphilippot.com>2022-01-29 18:21:37 +0100
committerArmand Philippot <git@armandphilippot.com>2022-01-29 19:02:57 +0100
commite4d5b8151802517b2943756fc0d09ffa95e2c4e2 (patch)
tree9e99137a7b64ea7993a8311a7162336a551be8b2 /src/components/Footer
parent47b854de26dea24e7838fd0804df103dee99635f (diff)
chore: replace lingui functions with react-intl
Diffstat (limited to 'src/components/Footer')
-rw-r--r--src/components/Footer/Footer.tsx10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/components/Footer/Footer.tsx b/src/components/Footer/Footer.tsx
index 15a4660..4aa980d 100644
--- a/src/components/Footer/Footer.tsx
+++ b/src/components/Footer/Footer.tsx
@@ -2,11 +2,12 @@ import { ButtonLink } from '@components/Buttons';
import Copyright from '@components/Copyright/Copyright';
import FooterNav from '@components/FooterNav/FooterNav';
import { ArrowIcon } from '@components/Icons';
-import { t } from '@lingui/macro';
import { useEffect, useState } from 'react';
+import { useIntl } from 'react-intl';
import styles from './Footer.module.scss';
const Footer = () => {
+ const intl = useIntl();
const [backToTopClasses, setBackToTopClasses] = useState(
`${styles['back-to-top']} ${styles['back-to-top--hidden']}`
);
@@ -36,7 +37,12 @@ const Footer = () => {
<FooterNav />
<div className={backToTopClasses}>
<ButtonLink target="#top" position="center">
- <span className="screen-reader-text">{t`Back to top`}</span>
+ <span className="screen-reader-text">
+ {intl.formatMessage({
+ defaultMessage: 'Back to top',
+ description: 'Footer: Back to top button',
+ })}
+ </span>
<ArrowIcon direction="top" />
</ButtonLink>
</div>