Skip to content

Commit

Permalink
chore: [#3] added loader
Browse files Browse the repository at this point in the history
  • Loading branch information
mdnorman committed May 13, 2022
1 parent f211bb3 commit 00cae19
Show file tree
Hide file tree
Showing 3 changed files with 5,327 additions and 5,184 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
"react-countdown": "^2.3.2",
"react-dom": "17.0.2",
"react-modal": "^3.15.1",
"react-spinners": "^0.11.0",
"react-tooltip": "^4.2.21",
"simple-git": "^2.47.0",
"web3modal": "^1.9.7"
Expand Down
7 changes: 4 additions & 3 deletions pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import keccak256 from 'keccak256';
import MerkleTree from 'merkletreejs';
import { NextPage } from 'next';
import { useEffect, useMemo, useState } from 'react';
import { BeatLoader } from 'react-spinners';
import ReactTooltip from 'react-tooltip';
import ClaimButton from '../components/ClaimButton';
import { ClaimModal } from '../components/ClaimModal';
Expand Down Expand Up @@ -97,8 +98,6 @@ const Home: NextPage = () => {
if (allowance > walletAlreadyClaimed) {
setCurrentView(VIEWS.INITIAL_VIEW); // in case user in on the minted nfts view and changes the wallet.
}

// TODO trkaplan add loading indicator until eligibility check is complete
};

const parcelProperties = getParcelProperties(totalSupply, MAX_NFT_TO_MINT);
Expand All @@ -107,7 +106,9 @@ const Home: NextPage = () => {
<div className="page-header">
<div className="header-content">
<img className="logo" src="/citydao-logo.png" alt="CityDAO" />
{chainId && chainId !== 1 ? (
{address && !parcelNFTDetails ? (
<BeatLoader />
) : chainId && chainId !== 1 ? (
<div className="network-warning-container">Warning: Not on Main Ethereum Network</div>
) : null}
<div className="connect-button-container">
Expand Down
Loading

0 comments on commit 00cae19

Please sign in to comment.