Token balance component
Description Refactor existing token balance component to match UX design: https://projects.invisionapp.com/share/KWU1X9IEB2U#/screens/396034060
Still need to do fine-tuning for mobile widths but will do that another time.
Also added a bunch of stuff to the service while I was at it. But only the getWallet()
function is really being used.
Testing Not particularly feasible in it's current state of staging limitations. Theoretically, testing should be like this:
-
Navigate to /v2wallet -
Token balances (total, offchain & onchain) should be accurate. -
The "buy tokens" button should be disabled if you haven't set up your wallet yet -
"buy tokens" and "learn more about tokens" should navigate to /tokens -
The "transfer to on-chain" link should not appear if you haven't set up your wallet yet -
Estimated token payout value and time of next payout should be accurate -
The estimated token payout element should not be visible on mobile -
Ensure accuracy of tokens/usd/eth subtotal values returned by walletService.getWallet()
Note: "transfer to on-chain" doesn't do anything
Closes #2282 (closed)
Part of &80 (closed)
Edited by Olivia Madrid