Page MenuHomePhabricator

[Cashtab] Display fiat price in local currency
ClosedPublic

Authored by kieran709 on Mar 15 2022, 21:44.

Details

Reviewers
bytesofman
emack
Group Reviewers
Restricted Project
Commits
rABCb16ee3387a73: [Cashtab] Display fiat price in local currency
Summary

Related to task T2300. XEC price in local currency displayed in balance header.

Test Plan

cd web/cashtab
npm start
observe the XEC price in the balance header

Diff Detail

Repository
rABC Bitcoin ABC
Branch
display-xec-price
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 18523
Build 36841: Build Diffcashtab-tests
Build 36840: arc lint + arc unit

Event Timeline

bytesofman added inline comments.
web/cashtab/src/components/Home/Home.js
172 ↗(On Diff #32724)

Put this in the existing BalanceHeaderFiat component

This revision now requires changes to proceed.Mar 15 2022, 22:17

Responding to review feedback

bytesofman added inline comments.
web/cashtab/src/components/Common/BalanceHeaderFiat.js
25 ↗(On Diff #32759)

Not necessary to use this ? : logic; instead just use fiatPrice && ; that way it only renders if fiatPrice is not null or false

27 ↗(On Diff #32759)

1 {currency.ticker} = ...

Should be clear this is the unit price of 1 XEC

This revision now requires changes to proceed.Mar 16 2022, 17:54

Responding to review feedback

This revision is now accepted and ready to land.Mar 16 2022, 18:41