feat: unit and visibility toggle on main wallet view #806
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Most wallets have the ability to switch the unit of account (BTC or sats) by clicking at the balance.
Before this commit, the balance on the main wallet view has been a visibility toggle only. If a user clicked the balance it either showed the balance in the preferred unit or hid the balance.
e.g. BTC -> hidden -> BTC -> hidden, etc.
After this commit, a click will change the unit of the balance and only with a subsequent click toggles the visibility.
e.g. BTC -> sats -> hidden -> BTC -> sats, etc.