Differential D9782 Diff 29207 web/cashtab-components/src/components/PriceDisplay/PriceDisplay.stories.tsx
Changeset View
Changeset View
Standalone View
Standalone View
web/cashtab-components/src/components/PriceDisplay/PriceDisplay.stories.tsx
Show All 30 Lines | .add( | ||||
/> | /> | ||||
); | ); | ||||
}, | }, | ||||
{ | { | ||||
notes: 'Displaying fiat currencies', | notes: 'Displaying fiat currencies', | ||||
}, | }, | ||||
) | ) | ||||
.add( | .add( | ||||
'bch', | 'xec', | ||||
() => { | () => { | ||||
const price = number('Price', 0.001); | const price = number('Price', 0.001); | ||||
const satoshis = price * 1e8; | const satoshis = price * 1e8; | ||||
return ( | return ( | ||||
<PriceDisplay | <PriceDisplay | ||||
coinType={Ticker.coinSymbol} | coinType={Ticker.coinSymbol} | ||||
price={formatAmount(satoshis, 8)} | price={formatAmount(satoshis, 8)} | ||||
Show All 28 Lines |