Skip to content

Commit

Permalink
chore: [#3] removed last todos
Browse files Browse the repository at this point in the history
  • Loading branch information
mdnorman committed May 13, 2022
1 parent 00cae19 commit 4fb3feb
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 12 deletions.
1 change: 1 addition & 0 deletions .eslintrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,4 @@ plugins:
- prettier
rules:
'prettier/prettier': warn
'@next/next/no-img-element': off
2 changes: 0 additions & 2 deletions components/ClaimModal/ClaimModal.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
/* eslint-disable @next/next/no-img-element */
// TODO trkaplan disable no-img-element in eslint config
import { FC, useState } from 'react';
import Modal from 'react-modal';

Expand Down
13 changes: 5 additions & 8 deletions components/ConnectButton/ConnectButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,8 @@ interface ConnectButtonProps {
text?: string;
}

export const ConnectButton: FC<ConnectButtonProps> = ({ enabled, onClick, address }) => {
// TODO trkaplan disable if wallet is not installed
return (
<button disabled={!enabled} onClick={onClick} className="text-button">
{address ? shortenWalletAddress(address) : 'Connect'}
</button>
);
};
export const ConnectButton: FC<ConnectButtonProps> = ({ enabled, onClick, address }) => (
<button disabled={!enabled} onClick={onClick} className="text-button">
{address ? shortenWalletAddress(address) : 'Connect'}
</button>
);
1 change: 0 additions & 1 deletion components/MintedNftsView/MintedNftsView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ export const MintedNftsView: FC<MintedNftsViewProps> = ({ navigateToHome, number
<br />
<div className="mintedNftImagesWrapper">
{[...Array(numberOfNfts)].map((value: undefined, index: number) => (
// eslint-disable-next-line @next/next/no-img-element
<img className="mintedNftImage" alt="Parcel 0 NFT Art" key={index} src="/citydao-parcel-0-NFT-Art-sm2.png" />
))}
</div>
Expand Down
1 change: 0 additions & 1 deletion pages/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable @next/next/no-img-element */
import { ethers } from 'ethers';
import keccak256 from 'keccak256';
import MerkleTree from 'merkletreejs';
Expand Down

0 comments on commit 4fb3feb

Please sign in to comment.