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.
---
 .../Buttons/ButtonSearch/ButtonSearch.tsx          | 40 ----------------------
 1 file changed, 40 deletions(-)
 delete mode 100644 src/components/Buttons/ButtonSearch/ButtonSearch.tsx

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

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

