This repository was archived by the owner on Dec 26, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed
src/components/DirectMint Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 30
30
"connectWalletText" : " Connect Wallet" ,
31
31
"ethereumNetworkPrompt" : " Please Connect to the Ethereum Mainnet" ,
32
32
"availableTokensText" : " View the available Token IDs" ,
33
- "remainingTokensText" : " We have {{remainingTokens}} Tokens left" ,
33
+ "remainingTokensText" : " {{remainingTokens}} tokens left / {{totalSupply}} already joined " ,
34
34
"mintPageHeader" : " DEVS Token Minter" ,
35
35
"projectsList" : " A list of community projects created by the Developer DAO community." ,
36
36
"ddaoTokenSearch" : " DDAO Token Search" ,
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ import useDevNFTSupply from '../../hooks/useDevNFTSupply';
18
18
// used on the minting page
19
19
const DirectMintBox = ( ) => {
20
20
const { t } = useTranslation ( ) ;
21
- const { isLoading, remainingPublicSupply } = useDevNFTSupply ( ) ;
21
+ const { isLoading, remainingPublicSupply, totalSupply } = useDevNFTSupply ( ) ;
22
22
return (
23
23
< >
24
24
< Container maxW = "container.md" centerContent >
@@ -41,7 +41,10 @@ const DirectMintBox = () => {
41
41
</ Text >
42
42
< Text fontSize = { { base : 'xs' , sm : 'xl' } } >
43
43
{ t ( 'remainingTokensText' , {
44
- remainingTokens : isLoading ? '...' : remainingPublicSupply ,
44
+ remainingTokens : isLoading
45
+ ? '...'
46
+ : remainingPublicSupply . toLocaleString ( ) ,
47
+ totalSupply : isLoading ? '...' : totalSupply . toLocaleString ( ) ,
45
48
} ) }
46
49
</ Text >
47
50
< DirectMint />
You can’t perform that action at this time.
0 commit comments