From e0ce6791c8a25e82427df8ace8d2ae3cce78c01e Mon Sep 17 00:00:00 2001 From: kalashshah <202051096@iiitvadodara.ac.in> Date: Mon, 16 Oct 2023 16:03:31 +0530 Subject: [PATCH] chore: fix uniswap modal ui overlap --- src/components/FaucetInfo.tsx | 104 +++++++++++++++++----------------- 1 file changed, 52 insertions(+), 52 deletions(-) diff --git a/src/components/FaucetInfo.tsx b/src/components/FaucetInfo.tsx index d511bbb399..9964974631 100644 --- a/src/components/FaucetInfo.tsx +++ b/src/components/FaucetInfo.tsx @@ -11,7 +11,7 @@ import { appConfig } from 'config'; import { device } from 'config/Globals'; import { useEffect, useState } from 'react'; import { getHasEnoughPushToken } from 'helpers'; -import useModalBlur, {MODAL_POSITION} from 'hooks/useModalBlur'; +import useModalBlur, { MODAL_POSITION } from 'hooks/useModalBlur'; import { UniswapWidgetModal } from './UniswapWidget'; type FaucetInfoType = { @@ -49,70 +49,70 @@ const FaucetInfo = ({ onMintPushToken, noOfPushTokensToCheck, containerProps }: useEffect(() => { (async () => { await checkSetFaucetVisibility(); - })() + })(); }, [noOfPushTokensToCheck]); return ( - - {isFaucetVisible ? ( - - - {isProd - ? 'You do not have sufficient PUSH Tokens. Swap to add more PUSH.' - : 'Follow these steps to ensure you have enough Testnet Push to proceed.'} - - {isProd ? ( - - - Swap Tokens for PUSH - - ) : ( - - - 1 - Goerli ETH Faucet - - { - await onMintPushToken(1000); - await checkSetFaucetVisibility(); - }} - > - 2 - Get Testnet PUSH - - - )} - - ) : ( - '' - )} - {isUniswapWidgetModalOpen && + <> + + {isFaucetVisible ? ( + + + {isProd + ? 'You do not have sufficient PUSH Tokens. Swap to add more PUSH.' + : 'Follow these steps to ensure you have enough Testnet Push to proceed.'} + + {isProd ? ( + + + Swap Tokens for PUSH + + ) : ( + + + 1 + Goerli ETH Faucet + + { + await onMintPushToken(1000); + await checkSetFaucetVisibility(); + }} + > + 2 + Get Testnet PUSH + + + )} + + ) : ( + '' + )} + + {isUniswapWidgetModalOpen && ( - } - - - + )} + ); }; const Container = styled.div` - width:100%; + width: 100%; transform: translateY(-40px); -` +`; const TextSpace = styled.div` box-sizing: border-box; @@ -125,7 +125,7 @@ const TextSpace = styled.div` background: #f4dcea; border-radius: 0px 0px 28px 28px; padding: 32px 32px 20px 32px; - margin-top:24px; + margin-top: 24px; margin-bottom: -40px; @media ${device.tablet} {