From 8f35362dad9914cac16f421745a27a1cdd0f02bc Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Wed, 24 May 2017 16:45:57 +0200 Subject: style, deduplication and doc comments --- src/pages/payback.tsx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/pages/payback.tsx') 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 {
{reserves.map(r => (
-

Reserve for ${prettyAmount(r.current_amount!)}

+

Reserve for ${amountToPretty(r.current_amount!)}

  • Exchange: ${r.exchange_base_url}
-- cgit v1.2.3