Skip to content
This repository was archived by the owner on Dec 26, 2023. It is now read-only.

Commit c6c4a7f

Browse files
committed
Adjust messaging as per brandonl.eth suggestion
1 parent df369c3 commit c6c4a7f

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

frontend/public/locales/en/common.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
"connectWalletText": "Connect Wallet",
3131
"ethereumNetworkPrompt": "Please Connect to the Ethereum Mainnet",
3232
"availableTokensText": "View the available Token IDs",
33-
"remainingTokensText": "We have {{remainingTokens}} Tokens left",
33+
"remainingTokensText": "{{remainingTokens}} tokens left / {{totalSupply}} already joined",
3434
"mintPageHeader": "DEVS Token Minter",
3535
"projectsList": "A list of community projects created by the Developer DAO community.",
3636
"ddaoTokenSearch": "DDAO Token Search",

frontend/src/components/DirectMint/DirectMintBox.tsx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import useDevNFTSupply from '../../hooks/useDevNFTSupply';
1818
// used on the minting page
1919
const DirectMintBox = () => {
2020
const { t } = useTranslation();
21-
const { isLoading, remainingPublicSupply } = useDevNFTSupply();
21+
const { isLoading, remainingPublicSupply, totalSupply } = useDevNFTSupply();
2222
return (
2323
<>
2424
<Container maxW="container.md" centerContent>
@@ -41,7 +41,10 @@ const DirectMintBox = () => {
4141
</Text>
4242
<Text fontSize={{ base: 'xs', sm: 'xl' }}>
4343
{t('remainingTokensText', {
44-
remainingTokens: isLoading ? '...' : remainingPublicSupply,
44+
remainingTokens: isLoading
45+
? '...'
46+
: remainingPublicSupply.toLocaleString(),
47+
totalSupply: isLoading ? '...' : totalSupply.toLocaleString(),
4548
})}
4649
</Text>
4750
<DirectMint />

0 commit comments

Comments
 (0)