From 49226e8fb53f711aac96332034db2a05d9c427d5 Mon Sep 17 00:00:00 2001 From: stringhandler Date: Tue, 24 Sep 2024 22:42:37 +0200 Subject: [PATCH] fix: remove airdrop toggle --- .../Airdrop/Settings/ToggleAirdropUi.tsx | 40 +++++++++---------- 1 file changed, 18 insertions(+), 22 deletions(-) diff --git a/src/containers/Airdrop/Settings/ToggleAirdropUi.tsx b/src/containers/Airdrop/Settings/ToggleAirdropUi.tsx index 67cad7db7..bf2c6749a 100644 --- a/src/containers/Airdrop/Settings/ToggleAirdropUi.tsx +++ b/src/containers/Airdrop/Settings/ToggleAirdropUi.tsx @@ -1,28 +1,24 @@ -import { ToggleSwitch } from '@app/components/elements/ToggleSwitch'; +// import { ToggleSwitch } from '@app/components/elements/ToggleSwitch'; import { Wrapper } from './styles'; -import { useAirdropStore } from '@app/store/useAirdropStore'; -import { useCallback, useRef, useState } from 'react'; +// import { useAirdropStore } from '@app/store/useAirdropStore'; +// import { useCallback, useRef, useState } from 'react'; export const ToggleAirdropUi = () => { - const { wipUI, setWipUI } = useAirdropStore(); - const [disabled, setDisabled] = useState(!wipUI); - const clickCountRef = useRef(0); + // const { wipUI, setWipUI } = useAirdropStore(); + // const [disabled, setDisabled] = useState(!wipUI); + // const clickCountRef = useRef(0); - const toggleWipUI = useCallback(() => { - if (disabled) { - if (clickCountRef.current > 9) { - setDisabled(false); - } else { - clickCountRef.current = clickCountRef.current + 1; - return; - } - } - setWipUI(!wipUI); - }, [disabled, setWipUI, wipUI]); + // const toggleWipUI = useCallback(() => { + // if (disabled) { + // if (clickCountRef.current > 9) { + // setDisabled(false); + // } else { + // clickCountRef.current = clickCountRef.current + 1; + // return; + // } + // } + // setWipUI(!wipUI); + // }, [disabled, setWipUI, wipUI]); - return ( - - - - ); + return {/* */}; };