ReFi-Protocol / dashboard

https://dashboard-indol-zeta-98.vercel.app
0 stars 4 forks source link

resolved issue Popups and contents #49 #65

Closed samfeeng closed 2 months ago

samfeeng commented 2 months ago

After the user enters the marketplace page,

IF the user has a refi balance of 0 then a popup appears with a message saying "We see that you are connected with 0 refi tokens, buy now for access to rewards!" with a [Maybe Later] button which closes the pop up.

IF the user has a refi balance above 0 (i.e. after the user buys into refi) then a popup appears with a message saying "Claim Ownership of a Real World Asset! Purchase your pCRBN NFT and own a plot of a French forest! You can be eligible to earn rewards (e.g. 110% APY)!". This is shown with two buttons:

[Maybe Later] which simply closes the pop up. [Explore Now] which causes the page to smoothly scroll down to the NFT collection.

This was achieved by creating two new modal files which was mostly copy and paste from the StakeNowModal as encouraged by the author of this issue -

("For all of these please use the modal that pops up after purchasing an NFT as the component, please don't make any new components to achieve this task. This whole issue should mainly be a simple copy and paste.").

These popups are loaded via the ZeroReFiTokensPopupModal.

Additionally, another modal is created RestakePopupModal , upon a user staking in a lock in period option, appears with the message "Restake for Even Higher Rewards!". I have tested that this modal/popup appears correctly however have not tested whether it appears after a user stakes in a lock in period option, however have implemented the pop up to appear only AFTER the user stakes in a lock in period option.

this is because I myself cannot buy an NFT on the devnet while testing. I believe the popup should appear as intended after the user stakes in a lock in period option however if somebody could test this, that would be great!

The messages for each popup were written as described in the issue.

netlify[bot] commented 2 months ago

Deploy request for refi-dashboard pending review.

Visit the deploys page to approve it

Name Link
Latest commit a2faa3e3ea4fa0c17d512357dcc75679567f1b3b
vercel[bot] commented 2 months ago

@samfeeng is attempting to deploy a commit to the ReFi Protocol Team on Vercel.

A member of the Team first needs to authorize it.