From bf725988325826e7d446421846dc481f6cd35a9b Mon Sep 17 00:00:00 2001 From: "matias.pobleteduran" Date: Mon, 10 Jun 2024 13:51:59 +0000 Subject: [PATCH] =?UTF-8?q?=E2=99=BB=EF=B8=8FRefactor=20swapHeader?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Swap/SwapHeader.tsx | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/src/components/Swap/SwapHeader.tsx b/src/components/Swap/SwapHeader.tsx index 1e816555..fa0e41d1 100644 --- a/src/components/Swap/SwapHeader.tsx +++ b/src/components/Swap/SwapHeader.tsx @@ -35,11 +35,13 @@ export default function SwapHeader({ chainId, trade, active, + showConfig, }: { autoSlippage?: number; chainId?: number; trade?: boolean; - active?: string; + active?: string; + showConfig: boolean; }) { const theme = useTheme(); const fiatOnRampButtonEnabled = true; @@ -63,9 +65,12 @@ export default function SwapHeader({ )} - + {showConfig ? + ( + + ) : + (false)} + ); }