From e4d5b8151802517b2943756fc0d09ffa95e2c4e2 Mon Sep 17 00:00:00 2001
From: Armand Philippot <git@armandphilippot.com>
Date: Sat, 29 Jan 2022 18:21:37 +0100
Subject: chore: replace lingui functions with react-intl

---
 src/components/Spinner/Spinner.tsx | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)

(limited to 'src/components/Spinner/Spinner.tsx')

diff --git a/src/components/Spinner/Spinner.tsx b/src/components/Spinner/Spinner.tsx
index cfa5717..381fbb6 100644
--- a/src/components/Spinner/Spinner.tsx
+++ b/src/components/Spinner/Spinner.tsx
@@ -1,13 +1,20 @@
-import { t } from '@lingui/macro';
+import { useIntl } from 'react-intl';
 import styles from './Spinner.module.scss';
 
 const Spinner = () => {
+  const intl = useIntl();
+
   return (
     <div className={styles.wrapper}>
       <div className={styles.ball}></div>
       <div className={styles.ball}></div>
       <div className={styles.ball}></div>
-      <div className={styles.text}>{t`Loading...`}</div>
+      <div className={styles.text}>
+        {intl.formatMessage({
+          defaultMessage: 'Loading...',
+          description: 'Spinner: loading text',
+        })}
+      </div>
     </div>
   );
 };
-- 
cgit v1.2.3

