summaryrefslogtreecommitdiffstats
path: root/src/components/Spinner/Spinner.tsx
diff options
context:
space:
mode:
authorArmand Philippot <git@armandphilippot.com>2022-01-16 14:18:54 +0100
committerArmand Philippot <git@armandphilippot.com>2022-01-16 14:24:08 +0100
commit395069f8cecd2deab2dfe1a2d7b97f379413e009 (patch)
tree8063ff201967b321295815114442ade486527ba3 /src/components/Spinner/Spinner.tsx
parente63d74d4147e66ec79c287b7c3fda0dadc139275 (diff)
chore: add a spinner when content is loading
Diffstat (limited to 'src/components/Spinner/Spinner.tsx')
-rw-r--r--src/components/Spinner/Spinner.tsx15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/components/Spinner/Spinner.tsx b/src/components/Spinner/Spinner.tsx
new file mode 100644
index 0000000..cfa5717
--- /dev/null
+++ b/src/components/Spinner/Spinner.tsx
@@ -0,0 +1,15 @@
+import { t } from '@lingui/macro';
+import styles from './Spinner.module.scss';
+
+const Spinner = () => {
+ 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>
+ );
+};
+
+export default Spinner;