From 008926b18470e7f394cd640302957b29728a9803 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Wed, 30 Aug 2017 17:08:54 +0200 Subject: compute full fees for refresh and spending --- src/webex/renderHtml.tsx | 32 -------------------------------- 1 file changed, 32 deletions(-) (limited to 'src/webex/renderHtml.tsx') diff --git a/src/webex/renderHtml.tsx b/src/webex/renderHtml.tsx index 2a5b50533..d26f726af 100644 --- a/src/webex/renderHtml.tsx +++ b/src/webex/renderHtml.tsx @@ -24,45 +24,13 @@ /** * Imports. */ -import { amountToPretty } from "../helpers"; -import * as i18n from "../i18n"; import { AmountJson, Amounts, - ContractTerms, } from "../types"; import * as React from "react"; -/** - * Render contract terms for the end user to view. - */ -export function renderContractTerms(contractTerms: ContractTerms): JSX.Element { - let merchantName; - if (contractTerms.merchant && contractTerms.merchant.name) { - merchantName = {contractTerms.merchant.name}; - } else { - merchantName = (pub: {contractTerms.merchant_pub}); - } - const amount = {amountToPretty(contractTerms.amount)}; - - return ( -
- - The merchant {merchantName} - wants to enter a contract over {amount}{" "} - with you. - -

{i18n.str`You are about to purchase:`}

- -
- ); -} - /** * Render amount as HTML, which non-breaking space between -- cgit v1.2.3