diff options
author | Florian Dold <florian.dold@gmail.com> | 2017-05-24 16:45:57 +0200 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2017-05-24 16:45:57 +0200 |
commit | 8f35362dad9914cac16f421745a27a1cdd0f02bc (patch) | |
tree | b91b4be2c96d7cc9e141a7cd6af70f93ab617b70 /src/pages/payback.tsx | |
parent | 39cca9f8f6050d6e35c88f8cd3c6e825eae9cb9f (diff) |
style, deduplication and doc comments
Diffstat (limited to 'src/pages/payback.tsx')
-rw-r--r-- | src/pages/payback.tsx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/pages/payback.tsx b/src/pages/payback.tsx index 9e463d4a0..01f5a64e4 100644 --- a/src/pages/payback.tsx +++ b/src/pages/payback.tsx @@ -40,8 +40,7 @@ import { getPaybackReserves, withdrawPaybackReserve, } from "../wxApi"; -import { prettyAmount } from "../renderHtml"; -import { getTalerStampDate } from "../helpers"; +import { amountToPretty, getTalerStampDate } from "../helpers"; import * as React from "react"; import * as ReactDOM from "react-dom"; @@ -80,7 +79,7 @@ class Payback extends ImplicitStateComponent<any> { <div> {reserves.map(r => ( <div> - <h2>Reserve for ${prettyAmount(r.current_amount!)}</h2> + <h2>Reserve for ${amountToPretty(r.current_amount!)}</h2> <ul> <li>Exchange: ${r.exchange_base_url}</li> </ul> |