From 829a59e1a24d6a99ce7554d28acfd05f21baeaf8 Mon Sep 17 00:00:00 2001 From: Sebastian Date: Mon, 22 Nov 2021 17:34:27 -0300 Subject: add exchange feature --- .../src/wallet/CreateManualWithdraw.tsx | 28 ++++++++++++---------- 1 file changed, 15 insertions(+), 13 deletions(-) (limited to 'packages/taler-wallet-webextension/src/wallet/CreateManualWithdraw.tsx') diff --git a/packages/taler-wallet-webextension/src/wallet/CreateManualWithdraw.tsx b/packages/taler-wallet-webextension/src/wallet/CreateManualWithdraw.tsx index 1bceabd20..554952795 100644 --- a/packages/taler-wallet-webextension/src/wallet/CreateManualWithdraw.tsx +++ b/packages/taler-wallet-webextension/src/wallet/CreateManualWithdraw.tsx @@ -21,6 +21,7 @@ import { AmountJson, Amounts, i18n } from "@gnu-taler/taler-util"; import { Fragment, h, VNode } from "preact"; +import { route } from "preact-router"; import { useState } from "preact/hooks"; import { ErrorMessage } from "../components/ErrorMessage"; import { SelectList } from "../components/SelectList"; @@ -32,7 +33,9 @@ import { Input, InputWithLabel, LightText, + LinkPrimary, } from "../components/styled"; +import { Pages } from "../NavigationBar"; export interface Props { error: string | undefined; @@ -87,12 +90,7 @@ export function CreateManualWithdraw({ return ( No exchange configured - { - null; - }} - > + route(Pages.exchange_add)}> Add exchange @@ -108,8 +106,9 @@ export function CreateManualWithdraw({ />

Manual Withdrawal

- Choose a exchange to create a reserve and then fill the reserve to - withdraw the coins + Choose a exchange from where the coins will be withdrawn. The exchange + will send the coins to this wallet after receiving a wire transfer + with the correct subject.

@@ -130,11 +129,14 @@ export function CreateManualWithdraw({ onChange={changeExchange} /> - {/*

- - Add new exchange - -

*/} +
+ route(Pages.exchange_add)} + style={{ marginLeft: "auto" }} + > + Add exchange + +
{currency && ( -- cgit v1.2.3