diff --git a/pages/mint.js b/pages/mint.js index 9d617b3..8f430ac 100644 --- a/pages/mint.js +++ b/pages/mint.js @@ -54,6 +54,7 @@ const Mint = () => { const [wallet, setwallet] = useState(""); const [userid, setuserid] = useState(""); const [buttonblur, setbuttonblur] = useState(false); + const [successpop, setsuccesspop] = useState(false); const { account, connected, network, signMessage} = useWallet(); @@ -156,7 +157,7 @@ const Mint = () => { const pendingTransaction = await aptos.signAndSubmitTransaction( transaction ); - + setsuccesspop(true); } catch (error) { console.error('Error connecting wallet or minting NFT:', error); setbuttonblur(false); @@ -271,6 +272,71 @@ Exceptional Value for Unmatched Security )} + +{successpop && ( +
+
+
+
+ +
+ +
+

+ Successfully Minted! +

+

+ You minted 111 VPN NFT ! To set clients, click button to go to subscription page. +

+
+ +
+ + Subscriptions + +
+
+
+
+ )} {error &&
{error}
}