Skip to content

Commit

Permalink
mintToken function
Browse files Browse the repository at this point in the history
  • Loading branch information
bernatmarcilla committed Oct 8, 2021
1 parent cca1fbd commit b831a0c
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions src/pages/minting.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,8 @@ function Minting() {
let selectedOption;
const [ipfs, setIpfs] = useState([])

function onSubmit() {
// defining the initial state for the form
const initialState = {
email: "",
password: "",
};
function mintToken() {
console.log("Minting token...");
}

function handleChange(selectedOption) {
Expand Down Expand Up @@ -90,7 +86,7 @@ function Minting() {
</div>
</form>
<br />
<h1 style={buttonStyle} className="btn btn-ghost btn-sm rounded-btn">Mint NFT</h1>
<h1 style={buttonStyle} onClick={mintToken} className="btn btn-ghost btn-sm rounded-btn">Mint NFT</h1>
</div>
</div>
</div>
Expand Down

0 comments on commit b831a0c

Please sign in to comment.