From 008926b18470e7f394cd640302957b29728a9803 Mon Sep 17 00:00:00 2001
From: Florian Dold <florian.dold@gmail.com>
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 = <strong>{contractTerms.merchant.name}</strong>;
-  } else {
-    merchantName = <strong>(pub: {contractTerms.merchant_pub})</strong>;
-  }
-  const amount = <strong>{amountToPretty(contractTerms.amount)}</strong>;
-
-  return (
-    <div>
-      <i18n.Translate wrap="p">
-        The merchant <span>{merchantName}</span>
-        wants to enter a contract over <span>{amount}</span>{" "}
-        with you.
-      </i18n.Translate>
-      <p>{i18n.str`You are about to purchase:`}</p>
-      <ul>
-        {contractTerms.products.map(
-          (p: any, i: number) => (<li key={i}>{`${p.description}: ${amountToPretty(p.price)}`}</li>))
-        }
-      </ul>
-    </div>
-  );
-}
-
 
 /**
  * Render amount as HTML, which non-breaking space between
-- 
cgit v1.2.3

