From 2c50cdec95b9d9a2076b10764779dd77c037d65e Mon Sep 17 00:00:00 2001 From: midas-myth Date: Thu, 19 Dec 2024 12:48:13 +0100 Subject: [PATCH] Instant curtain review fixes --- src/components/Footer/Footer.css | 4 ---- src/components/Footer/Footer.tsx | 2 +- src/components/Synthetics/TradeBox/Curtain.tsx | 4 ++-- src/components/Synthetics/TradeBox/TradeBoxHeaderTabs.tsx | 1 - 4 files changed, 3 insertions(+), 8 deletions(-) diff --git a/src/components/Footer/Footer.css b/src/components/Footer/Footer.css index d424eebe55..96a2c4822c 100644 --- a/src/components/Footer/Footer.css +++ b/src/components/Footer/Footer.css @@ -10,10 +10,6 @@ border-top: 1px solid var(--color-gray-950); } -.Footer-wrapper.mobile-trade-page { - padding-bottom: 52px; -} - .Footer-logo { margin-bottom: 2.4rem; display: flex; diff --git a/src/components/Footer/Footer.tsx b/src/components/Footer/Footer.tsx index 8763ddb8b9..316595f009 100644 --- a/src/components/Footer/Footer.tsx +++ b/src/components/Footer/Footer.tsx @@ -28,7 +28,7 @@ export default function Footer({ showRedirectModal, redirectPopupTimestamp, isMo return ( <> -
+
MetaMask
diff --git a/src/components/Synthetics/TradeBox/Curtain.tsx b/src/components/Synthetics/TradeBox/Curtain.tsx index 7fc66c1fcc..5b7a86c178 100644 --- a/src/components/Synthetics/TradeBox/Curtain.tsx +++ b/src/components/Synthetics/TradeBox/Curtain.tsx @@ -33,11 +33,11 @@ export function Curtain({ const headerClick = useCallback(() => { setIsOpen(true); - }, []); + }, [setIsOpen]); const handleClick = useCallback(() => { setIsOpen((prev) => !prev); - }, []); + }, [setIsOpen]); return ( <> diff --git a/src/components/Synthetics/TradeBox/TradeBoxHeaderTabs.tsx b/src/components/Synthetics/TradeBox/TradeBoxHeaderTabs.tsx index 7ea76b1b79..e071fb742b 100644 --- a/src/components/Synthetics/TradeBox/TradeBoxHeaderTabs.tsx +++ b/src/components/Synthetics/TradeBox/TradeBoxHeaderTabs.tsx @@ -1,5 +1,4 @@ import { msg } from "@lingui/macro"; -import cx from "classnames"; import { useCallback } from "react"; import { useHistory } from "react-router-dom";