aboutsummaryrefslogtreecommitdiff
path: root/packages/taler-wallet-webextension/src/wallet/ExchangeSelection/index.ts
diff options
context:
space:
mode:
authorSebastian <sebasjm@gmail.com>2022-09-20 20:26:41 -0300
committerSebastian <sebasjm@gmail.com>2022-09-20 20:26:47 -0300
commit859991a40c4a7757d874f9ae6e6db7b76145a3c3 (patch)
tree2d029521929fa63f731e0b62bd3342f6f70ad2f8 /packages/taler-wallet-webextension/src/wallet/ExchangeSelection/index.ts
parent7adaeff0a57bc2d0633dd6a2c750a91facc03c4d (diff)
downloadwallet-core-859991a40c4a7757d874f9ae6e6db7b76145a3c3.tar.xz
exchange selection for invoices and some fixes
Diffstat (limited to 'packages/taler-wallet-webextension/src/wallet/ExchangeSelection/index.ts')
-rw-r--r--packages/taler-wallet-webextension/src/wallet/ExchangeSelection/index.ts12
1 files changed, 5 insertions, 7 deletions
diff --git a/packages/taler-wallet-webextension/src/wallet/ExchangeSelection/index.ts b/packages/taler-wallet-webextension/src/wallet/ExchangeSelection/index.ts
index 2834028c6..4b28904fb 100644
--- a/packages/taler-wallet-webextension/src/wallet/ExchangeSelection/index.ts
+++ b/packages/taler-wallet-webextension/src/wallet/ExchangeSelection/index.ts
@@ -41,13 +41,16 @@ export interface Props {
onCancel: () => Promise<void>;
onSelection: (exchange: string) => Promise<void>;
}
+import {
+ State as SelectExchangeState
+} from "../../hooks/useSelectedExchange.js";
export type State =
| State.Loading
| State.LoadingUriError
| State.Ready
| State.Comparing
- | State.NoExchanges;
+ | SelectExchangeState.NoExchange;
export namespace State {
export interface Loading {
@@ -66,11 +69,6 @@ export namespace State {
error: undefined;
}
- export interface NoExchanges {
- status: "no-exchanges";
- error: undefined;
- }
-
export interface Ready extends BaseInfo {
status: "ready";
timeline: OperationMap<FeeDescription[]>;
@@ -89,7 +87,7 @@ const viewMapping: StateViewMap<State> = {
loading: Loading,
"error-loading": ErrorLoadingView,
comparing: ComparingView,
- "no-exchanges": NoExchangesView,
+ "no-exchange": NoExchangesView,
ready: ReadyView,
};