-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cleaned code. setup necessary components. TODOs defined
- Loading branch information
Showing
6 changed files
with
64 additions
and
150 deletions.
There are no files selected for viewing
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
/* | ||
Gallery Component | ||
TODO | ||
- query all nfts with unitName that starts with "dia" from the connected account | ||
- display the nfts in a grid with Create Date showing at the bottom of the image | ||
*/ | ||
const Gallery = () => { | ||
return <div>Gallery</div> | ||
} | ||
|
||
export default Gallery |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
import { useState } from 'react' | ||
import ConnectWallet from './ConnectWallet' | ||
|
||
/* | ||
NFT Minting / Wallet Connect component | ||
TODO | ||
Wallet Connect | ||
- Create button to connect wallet | ||
- once connected, the button disappear and shows the minting component with connect wallet address at the top | ||
Minting | ||
- Create drag and drop component for uploading images | ||
- Create input field for NFT name (one word to describe my emotion of the day) | ||
- create button to mint NFT | ||
- Integrate with Pinata to upload image to IPFS | ||
- Minting should: | ||
= upload image to IPFS | ||
- unitName should start with "dia"+ today's date? | ||
= NFT name should be the emotion of the day + date (e.g. "happy 2021-09-01") | ||
*/ | ||
|
||
const MintNft = () => { | ||
const [openWalletModal, setOpenWalletModal] = useState<boolean>(false) | ||
// const { activeAddress } = useWallet() | ||
|
||
const toggleWalletModal = () => { | ||
setOpenWalletModal(!openWalletModal) | ||
} | ||
return ( | ||
<div> | ||
<button | ||
className="btn m-2 bg-green-500 rounded border-none hover:bg-green-600 transition-colors duration-300" | ||
onClick={toggleWalletModal} | ||
> | ||
Connect Wallet | ||
</button> | ||
<ConnectWallet openModal={openWalletModal} closeModal={toggleWalletModal} /> | ||
</div> | ||
) | ||
} | ||
|
||
export default MintNft |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.