From e7ce79fe25c976fc92f90f96cb015006a5bf5f78 Mon Sep 17 00:00:00 2001 From: shad Date: Mon, 29 Aug 2022 02:46:00 +0200 Subject: [PATCH] fix: better typography, hide slider when maxPerTx=1, added font CSS import --- src/components/MintModal.js | 23 ++++++++++++++--------- src/components/QuantityModalStep.js | 12 ++++++------ src/styles/index.css | 2 ++ src/styles/theme.js | 12 ++++++++++-- 4 files changed, 32 insertions(+), 17 deletions(-) diff --git a/src/components/MintModal.js b/src/components/MintModal.js index d13f735..cf87d04 100644 --- a/src/components/MintModal.js +++ b/src/components/MintModal.js @@ -6,7 +6,9 @@ import { isMobile } from "../utils"; const DialogTitleWithClose = ({ children, onClose }) => { return - {children} + + {children} + {onClose ? ( { }}> 👀 } - { - txHash - ? `Minting ${quantity} NFT...` - : 'Confirm the transaction in your wallet' - } + + {txHash + ? `Minting ${quantity} NFT...` + : 'Confirm the transaction in your wallet'} + {!txHash && { } {!isLoading && <> - {step === 1 ? "Choose how many to mint" : "Pay with"} + Mint now {step === 1 && { +export const QuantityModalStep = ({ setQuantity, setIsLoading, setTxHash, setStep }) => { const [quantityValue, setQuantityValue] = useState(1) const [maxTokens, setMaxTokens] = useState(getDefaultMaxTokensPerMint()) const [mintPrice, setMintPrice] = useState(undefined) @@ -66,11 +66,11 @@ export const QuantityModalStep = ({ setQuantity, setStep, setIsLoading, setTxHas } return
- 1 && - + } {!window.DEFAULTS?.hideCounter &&