Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add generate button #4

Closed
vikiival opened this issue May 13, 2024 · 0 comments · Fixed by #5
Closed

Add generate button #4

vikiival opened this issue May 13, 2024 · 0 comments · Fixed by #5

Comments

@vikiival
Copy link
Member

Context

currently the mint frame looks like this

Screenshot 2024-05-13 at 13 00 03

It would be nice to have a button

Taks

  1. ADD button that on click respwawns the frame with new picture
 <Button >
   {" "}{" "}
</Button>
  1. to create a new picture you need to call
const random = Math.floor(Math.random() * 111) + 1
const image = getImage('base', contractAddress, String(random))

REF

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant