Created
November 25, 2021 15:25
-
-
Save rounakbanik/be3896f4448405f3a7f69a7da222e94f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { useEffect } from 'react'; | |
import './App.css'; | |
import contract from './contracts/NFTCollectible.json'; | |
const contractAddress = "0x355638a4eCcb777794257f22f50c289d4189F245"; | |
const abi = contract.abi; | |
function App() { | |
const checkWalletIsConnected = () => { } | |
const connectWalletHandler = () => { } | |
const mintNftHandler = () => { } | |
const connectWalletButton = () => { | |
return ( | |
<button onClick={connectWalletHandler} className='cta-button connect-wallet-button'> | |
Connect Wallet | |
</button> | |
) | |
} | |
const mintNftButton = () => { | |
return ( | |
<button onClick={mintNftHandler} className='cta-button mint-nft-button'> | |
Mint NFT | |
</button> | |
) | |
} | |
useEffect(() => { | |
checkWalletIsConnected(); | |
}, []) | |
return ( | |
<div className='main-app'> | |
<h1>Scrappy Squirrels Tutorial</h1> | |
<div> | |
{connectWalletButton()} | |
</div> | |
</div> | |
) | |
} | |
export default App; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment