Skip to content

Commit

Permalink
chore: [#3] replaced plot with nft
Browse files Browse the repository at this point in the history
  • Loading branch information
mdnorman committed May 14, 2022
1 parent 783d77a commit cd82a3c
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
8 changes: 4 additions & 4 deletions components/ClaimButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,18 @@ export interface ClaimButtonProps extends DefaultButtonProps {
const ClaimButton = ({ allowance, walletAlreadyClaimed, withinClaimPeriod, disabled, ...rest }: ClaimButtonProps) => {
const getClaimButtonText = () => {
if (!withinClaimPeriod) {
return 'CLAIM PLOTS';
return 'CLAIM NFTS';
}

if (allowance > 0 && allowance > walletAlreadyClaimed) {
return `CLAIM ${allowance - walletAlreadyClaimed} PLOTS`;
return `CLAIM ${allowance - walletAlreadyClaimed} NFTS`;
}

if (walletAlreadyClaimed > 0) {
return `${walletAlreadyClaimed} PLOTS CLAIMED`;
return `${walletAlreadyClaimed} NFTS CLAIMED`;
}

return 'CLAIM PLOTS';
return 'CLAIM NFTS';
};

return (
Expand Down
4 changes: 2 additions & 2 deletions components/ClaimSuccessModal/ClaimSuccessModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ export const ClaimSuccessModal: FC<ClaimSuccessModalProps> = ({ eligibleNftsCoun
<div className="popup-content">
Success! You just claimed
<span className="text-primary">
{` ${eligibleNftsCount}`} Parcel 0 Plot{eligibleNftsCount > 1 ? 's' : ''}.
{` ${eligibleNftsCount}`} Parcel 0 NFT{eligibleNftsCount > 1 ? 's' : ''}.
</span>
<p>
Plot location will be revealed on June 15th,
NFT location will be revealed on June 15th,
<br /> 2022.
</p>
</div>
Expand Down
4 changes: 2 additions & 2 deletions components/NotEligibleModal/NotEligibleModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ export const NotEligibleModal: FC = () => {
<img className="parcel-0-logo-md" src="/citydao-parcel-0-logo-md.png" alt="Parcel Zero NFT" />
<div className="popup-title">Parcel 0 Claim</div>
<div className="popup-content">
This wallet is not eligible to claim any Plots
This wallet is not eligible to claim any NFTs
<div className="note">
Parcel 0 plots can only be claimed by
Parcel 0 NFTs can only be claimed by
<br />
<a target="_blank" href="https://citydao.io/" rel="noreferrer">
CityDAO Citizen
Expand Down
4 changes: 2 additions & 2 deletions parcel-properties.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ import { ParcelPropertyProps } from './components/ParcelProperty';

export const getParcelProperties = (numberOfMinted: number, numberOfMaxNftToMint: number): ParcelPropertyProps[] => [
{
name: 'TOTAL PLOTS',
name: 'TOTAL NFTS',
value: `${numberOfMinted}/${numberOfMaxNftToMint}`,
tooltip: 'The number of plots will depend on how many Parcel 0 NFTs are minted.',
tooltip: 'The number of NFTs will depend on how many Parcel 0 NFTs are minted.',
iconPath: '/icons/icon_plot.png',
},
{
Expand Down

0 comments on commit cd82a3c

Please sign in to comment.