From 7e16f500cb7bc0cfd8bafbf6bb1555704f771231 Mon Sep 17 00:00:00 2001
From: Armand Philippot <git@armandphilippot.com>
Date: Fri, 29 Apr 2022 12:13:34 +0200
Subject: chore: remove old pages, components, helpers and types

Since I'm using new components, I will also rewrite the GraphQL queries
so it is easier to start from scratch.
---
 src/components/Buttons/ButtonHelp/ButtonHelp.tsx | 42 ------------------------
 1 file changed, 42 deletions(-)
 delete mode 100644 src/components/Buttons/ButtonHelp/ButtonHelp.tsx

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

diff --git a/src/components/Buttons/ButtonHelp/ButtonHelp.tsx b/src/components/Buttons/ButtonHelp/ButtonHelp.tsx
deleted file mode 100644
index 2616a8f..0000000
--- a/src/components/Buttons/ButtonHelp/ButtonHelp.tsx
+++ /dev/null
@@ -1,42 +0,0 @@
-import { SetStateAction } from 'react';
-import { useIntl } from 'react-intl';
-import styles from './ButtonHelp.module.scss';
-
-const ButtonHelp = ({
-  showHelp,
-  setShowHelp,
-  title,
-}: {
-  showHelp: boolean;
-  setShowHelp: (value: SetStateAction<boolean>) => void;
-  title?: string;
-}) => {
-  const intl = useIntl();
-
-  const handleClick = () => {
-    setShowHelp((prev) => !prev);
-  };
-
-  const activeModifier = showHelp ? styles.active : '';
-
-  return (
-    <button
-      onClick={handleClick}
-      title={title}
-      className={`${styles.wrapper} ${activeModifier}`}
-    >
-      <span className={styles.icon} aria-hidden="true">
-        ?
-      </span>
-      <span className="screen-reader-text">
-        {intl.formatMessage({
-          defaultMessage: 'Help',
-          description: 'ButtonHelp: screen reader text',
-          id: 'oPf+XA',
-        })}
-      </span>
-    </button>
-  );
-};
-
-export default ButtonHelp;
-- 
cgit v1.2.3

