-
Notifications
You must be signed in to change notification settings - Fork 88
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
frontend: rotate default currency on account summary #2635
frontend: rotate default currency on account summary #2635
Conversation
When I rotate the fiat is a bit unstable and seems to change a few times, I haven't investigated .. do you see that too? |
97d0ef9
to
c979515
Compare
thx for the review as usual, PTAL 🙏 @thisconnect |
931097b
to
9f57a41
Compare
tested qt-osx and it looks good, but I want to take a bit more time to look at the changes in frontends/web/src/contexts/RatesProvider.tsx |
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.
tested LGTM, with last small pixel nit
to improve UX, we'd like to enable rotating default currency on account summary. This is done by: - creating DefaultCurrencyRotator component - reused that component in rates.tsx and chart.tsx - onClick, runs `rotateFiat` (`RatesContext`). - reinitialize chart on change `defaultCurrency` (`RatesContext`)
3001bce
to
85e72c7
Compare
to improve UX, we'd like to enable rotating default currency on account summary. This is done by:
rotateFiat
(RatesContext
).defaultCurrency
(RatesContext
)