From 3ab9f0423e97af63da4bf6a13ffd786955bd5b3b Mon Sep 17 00:00:00 2001
From: Armand Philippot <git@armandphilippot.com>
Date: Thu, 26 Oct 2023 21:55:55 +0200
Subject: refactor(hooks,providers): rewrite useAckee hook and AckeeProvider

---
 src/components/organisms/modals/settings-modal.tsx | 13 +------------
 1 file changed, 1 insertion(+), 12 deletions(-)

(limited to 'src/components/organisms/modals/settings-modal.tsx')

diff --git a/src/components/organisms/modals/settings-modal.tsx b/src/components/organisms/modals/settings-modal.tsx
index 5a53bbd..f62312b 100644
--- a/src/components/organisms/modals/settings-modal.tsx
+++ b/src/components/organisms/modals/settings-modal.tsx
@@ -3,7 +3,6 @@ import { useIntl } from 'react-intl';
 import { Form, Heading, Icon, Modal, type ModalProps } from '../../atoms';
 import {
   AckeeToggle,
-  type AckeeToggleProps,
   MotionToggle,
   type MotionToggleProps,
   PrismThemeToggle,
@@ -12,10 +11,6 @@ import {
 import styles from './settings-modal.module.scss';
 
 export type SettingsModalProps = Pick<ModalProps, 'className'> & {
-  /**
-   * The local storage key for Ackee settings.
-   */
-  ackeeStorageKey: AckeeToggleProps['storageKey'];
   /**
    * The local storage key for Reduce motion settings.
    */
@@ -29,7 +24,6 @@ export type SettingsModalProps = Pick<ModalProps, 'className'> & {
  */
 export const SettingsModal: FC<SettingsModalProps> = ({
   className = '',
-  ackeeStorageKey,
   motionStorageKey,
 }) => {
   const intl = useIntl();
@@ -70,12 +64,7 @@ export const SettingsModal: FC<SettingsModalProps> = ({
           defaultValue="on"
           storageKey={motionStorageKey}
         />
-        <AckeeToggle
-          className={styles.item}
-          direction="upwards"
-          defaultValue="full"
-          storageKey={ackeeStorageKey}
-        />
+        <AckeeToggle className={styles.item} direction="upwards" />
       </Form>
     </Modal>
   );
-- 
cgit v1.2.3

