From a160f3151440106f5dcee11e2c3af2a4d8ed036e Mon Sep 17 00:00:00 2001 From: Sebastian Date: Tue, 20 Dec 2022 15:23:33 -0300 Subject: fix #7291 --- .../src/wallet/ExchangeSelection/views.tsx | 195 +++++++++++++++++---- 1 file changed, 157 insertions(+), 38 deletions(-) (limited to 'packages/taler-wallet-webextension/src/wallet/ExchangeSelection/views.tsx') diff --git a/packages/taler-wallet-webextension/src/wallet/ExchangeSelection/views.tsx b/packages/taler-wallet-webextension/src/wallet/ExchangeSelection/views.tsx index 95ab55261..26ff2c0d3 100644 --- a/packages/taler-wallet-webextension/src/wallet/ExchangeSelection/views.tsx +++ b/packages/taler-wallet-webextension/src/wallet/ExchangeSelection/views.tsx @@ -178,7 +178,11 @@ export function ComparingView({ selected, onReset, onSelect, - pairTimeline, + coinOperationTimeline, + globalFeeTimeline, + wireFeeTimeline, + missingWireTYpe, + newWireType, onShowPrivacy, onShowTerms, }: State.Comparing): VNode { @@ -249,8 +253,15 @@ export function ComparingView({

- Operations + Coin operations

+

+ + Every operation in this section may be different by denomination + value and is valid for a period of time. The exchange will charge + the indicated amount every time a coin is used in such operation. + +

Deposits

@@ -274,7 +285,7 @@ export function ComparingView({ Number(a) - Number(b)} /> @@ -290,7 +301,10 @@ export function ComparingView({ Denomination - Fee + Current + + + Selected Until @@ -299,7 +313,7 @@ export function ComparingView({ Number(a) - Number(b)} /> @@ -315,7 +329,10 @@ export function ComparingView({ Denomination - Fee + Current + + + Selected Until @@ -324,7 +341,7 @@ export function ComparingView({ Number(a) - Number(b)} /> @@ -340,7 +357,10 @@ export function ComparingView({ Denomination - Fee + Current + + + Selected Until @@ -349,12 +369,140 @@ export function ComparingView({ Number(a) - Number(b)} /> {" "}
+
+

+ Transfer operations +

+

+ + Every operation in this section may be different by transfer type + and is valid for a period of time. The exchange will charge the + indicated amount every time a transfer is made. + +

+ {missingWireTYpe.map((type) => { + return ( +

+ Wire {type} is not supported for this exchange. +

+ ); + })} + {newWireType.map((type) => { + return ( + +

+ Wire {type} is not supported for the previous exchange. +

+ + + +   + + Operation + + + Fee + + + Until + + + + + + + +
+ ); + })} + {Object.entries(wireFeeTimeline).map(([type, fees], idx) => { + return ( + +

{type}

+ + + +   + + Operation + + + Current + + + Selected + + + Until + + + + + a.localeCompare(b)} + /> + + +
+ ); + })} +
+
+

+ Wallet operations +

+

+ + Every operation in this section may be different by transfer type + and is valid for a period of time. The exchange will charge the + indicated amount every time a transfer is made. + +

+ + + +   + + Feature + + + Current + + + Selected + + + Until + + + + + a.localeCompare(b)} + /> + + +
+
+ + + + +