-
Notifications
You must be signed in to change notification settings - Fork 1
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
dApp: Acre points UI #704
base: main
Are you sure you want to change the base?
dApp: Acre points UI #704
Conversation
Added `Countdown` component, adjusted `Button` styles and mocked `useAcrePoints` hook
Changed width, added links, moved `CardButton` component to shared.
✅ Deploy Preview for acre-dapp-testnet ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
✅ Deploy Preview for acre-dapp ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
Removed (temporarily) `AcreRankCard` component
Add close button
c2c3d4c
to
0bec155
Compare
8676e2c
to
ccf775b
Compare
- Updates names - Open the model with confetti only when the claim action is successful - Show correct amounts
{/* TODO: Update `ButtonLink` component and 'link' Button theme variant */} | ||
<Button | ||
as={Link} | ||
href={`${EXTERNAL_HREF.DOCS}/acre-points-program`} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it would be better to create a separate const value for this link.
src/constants/externalHref.ts
export const EXTERNAL_HREF = {
ACRE_POINTS_DOCS: "https://docs.acre.fi/acre-points-program",
...
}
Issue 001 -
|
column | value before claim | value after claim |
---|---|---|
user_id | 0x6F1a421573082BE1BEAe22551259D4D793EfD2cE | 0x6F1a421573082BE1BEAe22551259D4D793EfD2cE |
unclaimed | 173078298 | 0 |
calculated_at | 2024-09-18 00:00:07 | 1726689620 |
claimed | 0 | 173078298 |
claimed_at | null | 1726689620 |
note calculated_at
was initially stored as YYYY-MM-DD hh:mm:ss
, but after claiming, stored as Unix timestamp
Can see other occurrences by querying SELECT * FROM points_balances
Ref: #722
Overview:
AcrePointsCard
componentAcrePointsClaimModal
componentNotes:
Screenshots:
Screen.Recording.2024-09-12.at.16.38.39.mov