summaryrefslogtreecommitdiff
path: root/packages/taler-wallet-webextension/src/wallet/DestinationSelection/state.ts
diff options
context:
space:
mode:
Diffstat (limited to 'packages/taler-wallet-webextension/src/wallet/DestinationSelection/state.ts')
-rw-r--r--packages/taler-wallet-webextension/src/wallet/DestinationSelection/state.ts55
1 files changed, 28 insertions, 27 deletions
diff --git a/packages/taler-wallet-webextension/src/wallet/DestinationSelection/state.ts b/packages/taler-wallet-webextension/src/wallet/DestinationSelection/state.ts
index a5d44e872..d4e270a6c 100644
--- a/packages/taler-wallet-webextension/src/wallet/DestinationSelection/state.ts
+++ b/packages/taler-wallet-webextension/src/wallet/DestinationSelection/state.ts
@@ -52,22 +52,22 @@ export function useComponentState(props: Props): RecursiveState<State> {
const previous: Contact[] = true
? []
: [
- {
- name: "International Bank",
- icon_type: "bank",
- description: "account ending with 3454",
- },
- {
- name: "Max",
- icon_type: "bank",
- description: "account ending with 3454",
- },
- {
- name: "Alex",
- icon_type: "bank",
- description: "account ending with 3454",
- },
- ];
+ {
+ name: "International Bank",
+ icon_type: "bank",
+ description: "account ending with 3454",
+ },
+ {
+ name: "Max",
+ icon_type: "bank",
+ description: "account ending with 3454",
+ },
+ {
+ name: "Alex",
+ icon_type: "bank",
+ description: "account ending with 3454",
+ },
+ ];
if (!amount) {
return () => {
@@ -87,7 +87,8 @@ export function useComponentState(props: Props): RecursiveState<State> {
if (hook.hasError) {
return {
status: "error",
- error: alertFromError(i18n.str`Could not load exchanges`, hook),
+ error: alertFromError(i18n,
+ i18n.str`Could not load exchanges`, hook),
};
}
const currencies: Record<string, string> = {};
@@ -127,8 +128,8 @@ export function useComponentState(props: Props): RecursiveState<State> {
onClick: invalid
? undefined
: pushAlertOnError(async () => {
- props.goToWalletBankDeposit(currencyAndAmount);
- }),
+ props.goToWalletBankDeposit(currencyAndAmount);
+ }),
},
selectMax: {
onClick: pushAlertOnError(async () => {
@@ -145,8 +146,8 @@ export function useComponentState(props: Props): RecursiveState<State> {
onClick: invalid
? undefined
: pushAlertOnError(async () => {
- props.goToWalletWalletSend(currencyAndAmount);
- }),
+ props.goToWalletWalletSend(currencyAndAmount);
+ }),
},
amountHandler: {
onInput: pushAlertOnError(async (s) => setAmount(s)),
@@ -168,22 +169,22 @@ export function useComponentState(props: Props): RecursiveState<State> {
onClick: invalid
? undefined
: pushAlertOnError(async () => {
- props.goToWalletManualWithdraw(currencyAndAmount);
- }),
+ props.goToWalletManualWithdraw(currencyAndAmount);
+ }),
},
goToBank: {
onClick: invalid
? undefined
: pushAlertOnError(async () => {
- props.goToWalletManualWithdraw(currencyAndAmount);
- }),
+ props.goToWalletManualWithdraw(currencyAndAmount);
+ }),
},
goToWallet: {
onClick: invalid
? undefined
: pushAlertOnError(async () => {
- props.goToWalletWalletInvoice(currencyAndAmount);
- }),
+ props.goToWalletWalletInvoice(currencyAndAmount);
+ }),
},
amountHandler: {
onInput: pushAlertOnError(async (s) => setAmount(s)),