From 983db5a087e2b433e66bdb39bc8a893f5f0cb654 Mon Sep 17 00:00:00 2001 From: PhilReact Date: Wed, 15 Jan 2025 02:22:03 +0200 Subject: [PATCH] update minting page --- src/components/Minting/Minting.tsx | 348 +---------------------------- 1 file changed, 1 insertion(+), 347 deletions(-) diff --git a/src/components/Minting/Minting.tsx b/src/components/Minting/Minting.tsx index 87e0852..fc23f2d 100644 --- a/src/components/Minting/Minting.tsx +++ b/src/components/Minting/Minting.tsx @@ -600,7 +600,7 @@ export const Minting = ({ - {accountInfo?.level >= 1 && !accountIsMinting && ( + {isPartOfMintingGroup && !accountIsMinting && ( Minting account: {handleNames(acct?.mintingAccount)} - - Recipient account: {handleNames(acct?.recipientAccount)} - - {acct?.mintingAccount !== accountInfo?.address && - acct?.recipientAccount === accountInfo?.address && - (accountInfo?.level || 0) > 0 && ( - - You have reached level 1+. Remove this minting key and then - click "Start Minting". - - )} - - - - - ))} - - - )} - - - Sponsor a new Minter - - {rewardShares?.filter((item) => item?.recipient !== myAddress) - ?.length > 0 ? ( - <> - - You are currently sponsoring one account. To sponsor - another account please remove the existing reward share. - - - ) : ( - <> - - Enter in the new Minter's address or name into the - input. Next, click on "Create reward share". If - successful, you will see a rewardshare key generated. - Copy the key and send it to your new Minter. - - - - setRewardSharePublicKey(e.target.value) - } - sx={{ - border: "0.5px solid var(--50-white, #FFFFFF80)", - padding: "0px 15px", - borderRadius: "5px", - height: "36px", - width: "350px", - maxWidth: "95%", - }} - placeholder="New minter's address or name" - inputProps={{ - "aria-label": "New minter's address or name", - fontSize: "14px", - fontWeight: 400, - }} - /> - - {rewardsharekey && ( - <> - - - - Click to copy the reward share key and share it with - your new minter - - - - - {rewardsharekey} - - - - )} - - )} - - - )} - {accountInfo?.level === 0 && !accountIsMinting && ( - <> - Become a minter! - - - - Ask a level 5+ minter to send you a minting key - - - Add the minting key in the input below and click "Add - minting key" - - - setMintingKey(e.target.value)} - sx={{ - border: "0.5px solid var(--50-white, #FFFFFF80)", - padding: "0px 15px", - borderRadius: "5px", - height: "36px", - width: "250px", - }} - placeholder="Add minting key" - inputProps={{ - "aria-label": "Add minting key", - fontSize: "14px", - fontWeight: 400, - }} - /> - - - - - )} - {accountInfo?.level === 0 && accountIsMinting && ( - - - You are currently on your way to level 1 - - - )} - - )} - {isShow && ( - - - {"Copy sponsorship key"} - - - - Click to copy the reward share key and share it with your new - minter - - - - - {message?.message} - - - - - - - - )}