From 0bfd4523b3408d9c841a1f25fd9ec86e81d6dd8f Mon Sep 17 00:00:00 2001 From: Sebastian Date: Wed, 24 Nov 2021 08:57:26 -0300 Subject: adding tos information in settings and return to manual withdraw when adding an exchange --- .../src/wallet/CreateManualWithdraw.tsx | 11 ++++------- 1 file changed, 4 insertions(+), 7 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 554952795..36feeb76e 100644 --- a/packages/taler-wallet-webextension/src/wallet/CreateManualWithdraw.tsx +++ b/packages/taler-wallet-webextension/src/wallet/CreateManualWithdraw.tsx @@ -21,7 +21,6 @@ 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"; @@ -35,13 +34,13 @@ import { LightText, LinkPrimary, } from "../components/styled"; -import { Pages } from "../NavigationBar"; export interface Props { error: string | undefined; initialAmount?: string; exchangeList: Record; onCreate: (exchangeBaseUrl: string, amount: AmountJson) => Promise; + onAddExchange: () => void; } export function CreateManualWithdraw({ @@ -49,6 +48,7 @@ export function CreateManualWithdraw({ exchangeList, error, onCreate, + onAddExchange, }: Props): VNode { const exchangeSelectList = Object.keys(exchangeList); const currencySelectList = Object.values(exchangeList); @@ -90,7 +90,7 @@ export function CreateManualWithdraw({ return ( No exchange configured - route(Pages.exchange_add)}> + Add exchange @@ -130,10 +130,7 @@ export function CreateManualWithdraw({ />
- route(Pages.exchange_add)} - style={{ marginLeft: "auto" }} - > + Add exchange
-- cgit v1.2.3