diff options
author | Florian Dold <florian.dold@gmail.com> | 2019-12-12 20:53:15 +0100 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2019-12-12 20:53:15 +0100 |
commit | 74433c3e05734aa1194049fcbcaa92c70ce61c74 (patch) | |
tree | d30e79c9ac3fd5720de628f6a9764354ec69c648 /src/webex/pages | |
parent | cc137c87394ec34d2f54d69fe896dfdf3feec5ea (diff) | |
download | wallet-core-74433c3e05734aa1194049fcbcaa92c70ce61c74.tar.xz |
refactor: re-structure type definitions
Diffstat (limited to 'src/webex/pages')
-rw-r--r-- | src/webex/pages/add-auditor.tsx | 2 | ||||
-rw-r--r-- | src/webex/pages/auditors.tsx | 2 | ||||
-rw-r--r-- | src/webex/pages/benchmark.tsx | 4 | ||||
-rw-r--r-- | src/webex/pages/pay.tsx | 4 | ||||
-rw-r--r-- | src/webex/pages/payback.tsx | 2 | ||||
-rw-r--r-- | src/webex/pages/popup.tsx | 6 | ||||
-rw-r--r-- | src/webex/pages/refund.tsx | 2 | ||||
-rw-r--r-- | src/webex/pages/return-coins.tsx | 4 | ||||
-rw-r--r-- | src/webex/pages/tip.tsx | 4 | ||||
-rw-r--r-- | src/webex/pages/welcome.tsx | 2 | ||||
-rw-r--r-- | src/webex/pages/withdraw.tsx | 4 |
11 files changed, 18 insertions, 18 deletions
diff --git a/src/webex/pages/add-auditor.tsx b/src/webex/pages/add-auditor.tsx index 766db9c5d..0f681aae4 100644 --- a/src/webex/pages/add-auditor.tsx +++ b/src/webex/pages/add-auditor.tsx @@ -20,7 +20,7 @@ * @author Florian Dold */ -import { CurrencyRecord } from "../../dbTypes"; +import { CurrencyRecord } from "../../types/dbTypes"; import { getCurrencies, updateCurrency } from "../wxApi"; import React, { useState } from "react"; import { registerMountPage } from "../renderHtml"; diff --git a/src/webex/pages/auditors.tsx b/src/webex/pages/auditors.tsx index 276a7e8e1..876cf326b 100644 --- a/src/webex/pages/auditors.tsx +++ b/src/webex/pages/auditors.tsx @@ -25,7 +25,7 @@ import { AuditorRecord, CurrencyRecord, ExchangeForCurrencyRecord, -} from "../../dbTypes"; +} from "../../types/dbTypes"; import { getCurrencies, diff --git a/src/webex/pages/benchmark.tsx b/src/webex/pages/benchmark.tsx index b250bc20a..fe874f2b7 100644 --- a/src/webex/pages/benchmark.tsx +++ b/src/webex/pages/benchmark.tsx @@ -21,9 +21,9 @@ * @author Florian Dold */ -import * as i18n from "../../i18n"; +import * as i18n from "../i18n"; -import { BenchmarkResult } from "../../walletTypes"; +import { BenchmarkResult } from "../../types/walletTypes"; import * as wxApi from "../wxApi"; diff --git a/src/webex/pages/pay.tsx b/src/webex/pages/pay.tsx index cff2f9461..eca115e78 100644 --- a/src/webex/pages/pay.tsx +++ b/src/webex/pages/pay.tsx @@ -22,9 +22,9 @@ /** * Imports. */ -import * as i18n from "../../i18n"; +import * as i18n from "../i18n"; -import { PreparePayResult } from "../../walletTypes"; +import { PreparePayResult } from "../../types/walletTypes"; import { renderAmount, ProgressButton, registerMountPage } from "../renderHtml"; import * as wxApi from "../wxApi"; diff --git a/src/webex/pages/payback.tsx b/src/webex/pages/payback.tsx index 806bef17c..a25b5c6b2 100644 --- a/src/webex/pages/payback.tsx +++ b/src/webex/pages/payback.tsx @@ -23,7 +23,7 @@ /** * Imports. */ -import { ReserveRecord } from "../../dbTypes"; +import { ReserveRecord } from "../../types/dbTypes"; import { renderAmount, registerMountPage } from "../renderHtml"; import { getPaybackReserves, withdrawPaybackReserve } from "../wxApi"; import * as React from "react"; diff --git a/src/webex/pages/popup.tsx b/src/webex/pages/popup.tsx index 27d5dddba..3a2856d64 100644 --- a/src/webex/pages/popup.tsx +++ b/src/webex/pages/popup.tsx @@ -24,16 +24,15 @@ /** * Imports. */ -import * as i18n from "../../i18n"; +import * as i18n from "../i18n"; import { AmountJson } from "../../util/amounts"; import * as Amounts from "../../util/amounts"; import { - HistoryEvent, WalletBalance, WalletBalanceEntry, -} from "../../walletTypes"; +} from "../../types/walletTypes"; import { abbrev, @@ -44,6 +43,7 @@ import { import * as wxApi from "../wxApi"; import * as React from "react"; +import { HistoryEvent } from "../../types/history"; function onUpdateNotification(f: () => void): () => void { const port = chrome.runtime.connect({ name: "notifications" }); diff --git a/src/webex/pages/refund.tsx b/src/webex/pages/refund.tsx index 5196c9ea6..2a3f65d21 100644 --- a/src/webex/pages/refund.tsx +++ b/src/webex/pages/refund.tsx @@ -24,7 +24,7 @@ import React, { useEffect, useState } from "react"; import ReactDOM from "react-dom"; import * as wxApi from "../wxApi"; -import { PurchaseDetails } from "../../walletTypes"; +import { PurchaseDetails } from "../../types/walletTypes"; import { AmountView } from "../renderHtml"; function RefundStatusView(props: { talerRefundUri: string }) { diff --git a/src/webex/pages/return-coins.tsx b/src/webex/pages/return-coins.tsx index be65b4121..7c835da0a 100644 --- a/src/webex/pages/return-coins.tsx +++ b/src/webex/pages/return-coins.tsx @@ -31,9 +31,9 @@ import * as Amounts from "../../util/amounts"; import { SenderWireInfos, WalletBalance, -} from "../../walletTypes"; +} from "../../types/walletTypes"; -import * as i18n from "../../i18n"; +import * as i18n from "../i18n"; import * as wire from "../../util/wire"; diff --git a/src/webex/pages/tip.tsx b/src/webex/pages/tip.tsx index ac904cf0d..c44b343a4 100644 --- a/src/webex/pages/tip.tsx +++ b/src/webex/pages/tip.tsx @@ -24,7 +24,7 @@ import * as React from "react"; import * as ReactDOM from "react-dom"; -import * as i18n from "../../i18n"; +import * as i18n from "../i18n"; import { acceptTip, getReserveCreationInfo, getTipStatus } from "../wxApi"; @@ -32,7 +32,7 @@ import { WithdrawDetailView, renderAmount, ProgressButton } from "../renderHtml" import * as Amounts from "../../util/amounts"; import { useState, useEffect } from "react"; -import { TipStatus } from "../../walletTypes"; +import { TipStatus } from "../../types/walletTypes"; function TipDisplay(props: { talerTipUri: string }) { diff --git a/src/webex/pages/welcome.tsx b/src/webex/pages/welcome.tsx index 1026e6e6e..e8f7028ed 100644 --- a/src/webex/pages/welcome.tsx +++ b/src/webex/pages/welcome.tsx @@ -23,7 +23,7 @@ import React, { useState, useEffect } from "react"; import { getDiagnostics } from "../wxApi"; import { registerMountPage, PageLink } from "../renderHtml"; -import { WalletDiagnostics } from "../../walletTypes"; +import { WalletDiagnostics } from "../../types/walletTypes"; function Diagnostics() { const [timedOut, setTimedOut] = useState(false); diff --git a/src/webex/pages/withdraw.tsx b/src/webex/pages/withdraw.tsx index 3ee0f768a..9d84ff3a6 100644 --- a/src/webex/pages/withdraw.tsx +++ b/src/webex/pages/withdraw.tsx @@ -22,11 +22,11 @@ */ -import * as i18n from "../../i18n"; +import * as i18n from "../i18n"; import { WithdrawDetails, -} from "../../walletTypes"; +} from "../../types/walletTypes"; import { WithdrawDetailView, renderAmount } from "../renderHtml"; |