From 5fd5988b3581fbdf1c1e3483b1345626f1594227 Mon Sep 17 00:00:00 2001 From: Justin Chen Date: Sun, 12 Nov 2023 02:07:39 +0300 Subject: [PATCH] Fix up more styling --- client/src/components/Swap/OnRamp.tsx | 17 --------------- client/src/components/modals/Modal.tsx | 30 ++++++++++++++++++++++++-- 2 files changed, 28 insertions(+), 19 deletions(-) diff --git a/client/src/components/Swap/OnRamp.tsx b/client/src/components/Swap/OnRamp.tsx index 10b53b829..089f4a6b3 100644 --- a/client/src/components/Swap/OnRamp.tsx +++ b/client/src/components/Swap/OnRamp.tsx @@ -9,8 +9,6 @@ import { usePrepareContractWrite, useWaitForTransaction } from 'wagmi' -import { useWindowSize } from "@uidotdev/usehooks"; -import Confetti from 'react-confetti'; import { RowBetween } from '../layouts/Row' import { ThemedText } from '../../theme/text' @@ -46,7 +44,6 @@ export const OnRamp: React.FC = ({ } = useSmartContracts(); const { refetchIntentHash } = useOnRamperIntents(); const { refetchUsdcBalance } = useBalances(); - const size = useWindowSize(); /* * State @@ -54,7 +51,6 @@ export const OnRamp: React.FC = ({ const [shouldConfigureRampWrite, setShouldConfigureRampWrite] = useState(false); const [shouldFetchVerifyProof, setShouldFetchVerifyProof] = useState(false); - const [showConfetti, setShowConfetti] = useState(false); const [tx, setTx] = useState(null); // ----- transaction state ----- @@ -123,11 +119,6 @@ export const OnRamp: React.FC = ({ refetchUsdcBalance?.(); refetchIntentHash?.(); - - setShowConfetti(true); - setTimeout(() => { - setShowConfetti(false); - }, 5000); }, }); @@ -177,14 +168,6 @@ export const OnRamp: React.FC = ({ return ( - {showConfetti ? ( - - ) : null}