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 +8
-0
lines changed
src/components/DirectMint Expand file tree Collapse file tree 2 files changed +8
-0
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
34
"mintPageHeader" : " DEVS Token Minter" ,
34
35
"projectsList" : " A list of community projects created by the Developer DAO community." ,
35
36
"ddaoTokenSearch" : " DDAO Token Search" ,
Original file line number Diff line number Diff line change @@ -12,11 +12,13 @@ import {
12
12
} from '@chakra-ui/react' ;
13
13
import { useTranslation } from 'next-i18next' ;
14
14
import { TOKEN_FINDER_URL } from '../../utils/DeveloperDaoConstants' ;
15
+ import useDevNFTSupply from '../../hooks/useDevNFTSupply' ;
15
16
16
17
// Layout for the Direct Mint Box
17
18
// used on the minting page
18
19
const DirectMintBox = ( ) => {
19
20
const { t } = useTranslation ( ) ;
21
+ const { loading, remainingPublicSupply } = useDevNFTSupply ( ) ;
20
22
return (
21
23
< >
22
24
< Container maxW = "container.md" centerContent >
@@ -37,6 +39,11 @@ const DirectMintBox = () => {
37
39
{ t ( 'here' ) }
38
40
</ Link >
39
41
</ Text >
42
+ < Text fontSize = { { base : 'xs' , sm : 'xl' } } >
43
+ { t ( 'remainingTokensText' , {
44
+ remainingTokens : loading ? '...' : remainingPublicSupply ,
45
+ } ) }
46
+ </ Text >
40
47
< DirectMint />
41
48
</ Stack >
42
49
</ Box >
You can’t perform that action at this time.
0 commit comments