From 9377b023656ae4fb001245a37b1a4a3cbbc69845 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 | 28 +++++++++++++--------------- src/components/QuantityModalStep.js | 12 ++++++------ src/styles/index.css | 18 +++++++++++++++++- src/styles/theme.js | 26 ++++++++++++++++++++++---- 4 files changed, 58 insertions(+), 26 deletions(-) diff --git a/src/components/MintModal.js b/src/components/MintModal.js index d13f735..06a73f1 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 && { } const styles = { - mintModalContent: { - display: "flex", - flexWrap: "wrap", - flexDirection: "row", - overflow: "visible" - }, mintOption: { padding: "16px", marginLeft: "12px", diff --git a/src/components/QuantityModalStep.js b/src/components/QuantityModalStep.js index a2012c3..8b11bd5 100644 --- a/src/components/QuantityModalStep.js +++ b/src/components/QuantityModalStep.js @@ -13,7 +13,7 @@ import { parseTxError, roundToDecimal } from '../utils'; import { Attribution } from './Attribution'; import { isEthereumContract } from "../contract"; -export const QuantityModalStep = ({ setQuantity, setStep, setIsLoading, setTxHash }) => { +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 &&