Created
November 25, 2021 15:17
-
-
Save rounakbanik/c54bf2fbdf20593b98d13b4d24ae688f 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> | |
) | |
} | |
const mintNftButton = () => { | |
return ( | |
<button onClick={mintNftHandler} className='cta-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