From 0a954547b2bb8136c97f3a697274319751e046ed Mon Sep 17 00:00:00 2001
From: Armand Philippot <git@armandphilippot.com>
Date: Wed, 5 Jan 2022 12:00:43 +0100
Subject: chore: replace theme button with settings

I plan to add more user settings so theme options should be inside
settings.
---
 src/components/Buttons/ButtonTheme/ButtonTheme.tsx | 40 ----------------------
 1 file changed, 40 deletions(-)
 delete mode 100644 src/components/Buttons/ButtonTheme/ButtonTheme.tsx

(limited to 'src/components/Buttons/ButtonTheme/ButtonTheme.tsx')

diff --git a/src/components/Buttons/ButtonTheme/ButtonTheme.tsx b/src/components/Buttons/ButtonTheme/ButtonTheme.tsx
deleted file mode 100644
index afbac89..0000000
--- a/src/components/Buttons/ButtonTheme/ButtonTheme.tsx
+++ /dev/null
@@ -1,40 +0,0 @@
-import { CloseIcon, ThemeIcon } from '@components/Icons';
-import { t } from '@lingui/macro';
-import { SetStateAction } from 'react';
-import styles from '../Buttons.module.scss';
-
-const ButtonTheme = ({
-  isActivated,
-  setIsActivated,
-}: {
-  isActivated: boolean;
-  setIsActivated: (value: SetStateAction<boolean>) => void;
-}) => {
-  const btnClasses = isActivated
-    ? `${styles.theme} ${styles['theme--opened']}`
-    : styles.theme;
-
-  return (
-    <button
-      className={btnClasses}
-      type="button"
-      onClick={() => setIsActivated(!isActivated)}
-    >
-      <span className={styles.icon}>
-        <span className={styles.front}>
-          <ThemeIcon />
-        </span>
-        <span className={styles.back}>
-          <CloseIcon />
-        </span>
-      </span>
-      {isActivated ? (
-        <span className="screen-reader-text">{t`Close theme options`}</span>
-      ) : (
-        <span className="screen-reader-text">{t`Open theme options`}</span>
-      )}
-    </button>
-  );
-};
-
-export default ButtonTheme;
-- 
cgit v1.2.3

