diff options
author | Sebastian <sebasjm@gmail.com> | 2022-03-28 23:41:07 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2022-03-28 23:41:07 -0300 |
commit | e2651bdff2eac072ed2394f69e2cf59a8c53cdba (patch) | |
tree | 77dc6629a223fcf57d8b6547dde0461940e0244a /packages/taler-wallet-webextension/src/popup | |
parent | f5d194dfc61ae0d358a27b994861dc20b83cf98e (diff) | |
download | wallet-core-e2651bdff2eac072ed2394f69e2cf59a8c53cdba.tar.xz |
add extension to every import
Diffstat (limited to 'packages/taler-wallet-webextension/src/popup')
7 files changed, 39 insertions, 36 deletions
diff --git a/packages/taler-wallet-webextension/src/popup/Application.tsx b/packages/taler-wallet-webextension/src/popup/Application.tsx index 71b2d6c49..72579b05b 100644 --- a/packages/taler-wallet-webextension/src/popup/Application.tsx +++ b/packages/taler-wallet-webextension/src/popup/Application.tsx @@ -25,21 +25,21 @@ import { Fragment, h, VNode } from "preact"; import Router, { route, Route } from "preact-router"; import { Match } from "preact-router/match"; import { useEffect, useState } from "preact/hooks"; -import PendingTransactions from "../components/PendingTransactions"; -import { PopupBox } from "../components/styled"; -import { DevContextProvider } from "../context/devContext"; -import { IoCProviderForRuntime } from "../context/iocContext"; +import PendingTransactions from "../components/PendingTransactions.js"; +import { PopupBox } from "../components/styled/index.js"; +import { DevContextProvider } from "../context/devContext.js"; +import { IoCProviderForRuntime } from "../context/iocContext.js"; import { TranslationProvider, useTranslationContext, -} from "../context/translation"; -import { useTalerActionURL } from "../hooks/useTalerActionURL"; -import { Pages, PopupNavBar } from "../NavigationBar"; -import { platform } from "../platform/api"; -import { BackupPage } from "../wallet/BackupPage"; -import { ProviderDetailPage } from "../wallet/ProviderDetailPage"; -import { BalancePage } from "./BalancePage"; -import { TalerActionFound } from "./TalerActionFound"; +} from "../context/translation.js"; +import { useTalerActionURL } from "../hooks/useTalerActionURL.js"; +import { Pages, PopupNavBar } from "../NavigationBar.js"; +import { platform } from "../platform/api.js"; +import { BackupPage } from "../wallet/BackupPage.js"; +import { ProviderDetailPage } from "../wallet/ProviderDetailPage.js"; +import { BalancePage } from "./BalancePage.js"; +import { TalerActionFound } from "./TalerActionFound.js"; function CheckTalerActionComponent(): VNode { const [talerActionUrl] = useTalerActionURL(); diff --git a/packages/taler-wallet-webextension/src/popup/Balance.stories.tsx b/packages/taler-wallet-webextension/src/popup/Balance.stories.tsx index 1af3b5858..bb07ee0dd 100644 --- a/packages/taler-wallet-webextension/src/popup/Balance.stories.tsx +++ b/packages/taler-wallet-webextension/src/popup/Balance.stories.tsx @@ -19,8 +19,8 @@ * @author Sebastian Javier Marchano (sebasjm) */ -import { createExample } from "../test-utils"; -import { BalanceView as TestedComponent } from "./BalancePage"; +import { createExample } from "../test-utils.js"; +import { BalanceView as TestedComponent } from "./BalancePage.js"; export default { title: "popup/balance", diff --git a/packages/taler-wallet-webextension/src/popup/BalancePage.tsx b/packages/taler-wallet-webextension/src/popup/BalancePage.tsx index 2dc0f81e3..520e5b744 100644 --- a/packages/taler-wallet-webextension/src/popup/BalancePage.tsx +++ b/packages/taler-wallet-webextension/src/popup/BalancePage.tsx @@ -22,17 +22,17 @@ import { } from "@gnu-taler/taler-util"; import { Fragment, h, VNode } from "preact"; import { useState } from "preact/hooks"; -import { BalanceTable } from "../components/BalanceTable"; -import { JustInDevMode } from "../components/JustInDevMode"; -import { Loading } from "../components/Loading"; -import { LoadingError } from "../components/LoadingError"; -import { MultiActionButton } from "../components/MultiActionButton"; -import { ButtonBoxPrimary, ButtonPrimary } from "../components/styled"; -import { useTranslationContext } from "../context/translation"; -import { useAsyncAsHook } from "../hooks/useAsyncAsHook"; -import { AddNewActionView } from "../wallet/AddNewActionView"; -import * as wxApi from "../wxApi"; -import { NoBalanceHelp } from "./NoBalanceHelp"; +import { BalanceTable } from "../components/BalanceTable.js"; +import { JustInDevMode } from "../components/JustInDevMode.js"; +import { Loading } from "../components/Loading.js"; +import { LoadingError } from "../components/LoadingError.js"; +import { MultiActionButton } from "../components/MultiActionButton.js"; +import { ButtonBoxPrimary, ButtonPrimary } from "../components/styled/index.js"; +import { useTranslationContext } from "../context/translation.js"; +import { useAsyncAsHook } from "../hooks/useAsyncAsHook.js"; +import { AddNewActionView } from "../wallet/AddNewActionView.js"; +import * as wxApi from "../wxApi.js"; +import { NoBalanceHelp } from "./NoBalanceHelp.js"; export interface Props { goToWalletDeposit: (currency: string) => void; diff --git a/packages/taler-wallet-webextension/src/popup/NoBalanceHelp.tsx b/packages/taler-wallet-webextension/src/popup/NoBalanceHelp.tsx index 92c2bec0a..3ec7b314c 100644 --- a/packages/taler-wallet-webextension/src/popup/NoBalanceHelp.tsx +++ b/packages/taler-wallet-webextension/src/popup/NoBalanceHelp.tsx @@ -1,6 +1,6 @@ import { h, VNode } from "preact"; -import { ButtonBoxWarning, WarningBox } from "../components/styled"; -import { useTranslationContext } from "../context/translation"; +import { ButtonBoxWarning, WarningBox } from "../components/styled/index.js"; +import { useTranslationContext } from "../context/translation.js"; export function NoBalanceHelp({ goToWalletManualWithdraw, @@ -13,8 +13,7 @@ export function NoBalanceHelp({ <p> <b> <i18n.Translate>You have no balance.</i18n.Translate> - </b> - {" "} + </b>{" "} <i18n.Translate>Withdraw some funds into your wallet.</i18n.Translate> </p> <ButtonBoxWarning onClick={() => goToWalletManualWithdraw()}> diff --git a/packages/taler-wallet-webextension/src/popup/TalerActionFound.stories.tsx b/packages/taler-wallet-webextension/src/popup/TalerActionFound.stories.tsx index f20403d6a..ad4dcb59c 100644 --- a/packages/taler-wallet-webextension/src/popup/TalerActionFound.stories.tsx +++ b/packages/taler-wallet-webextension/src/popup/TalerActionFound.stories.tsx @@ -19,8 +19,8 @@ * @author Sebastian Javier Marchano (sebasjm) */ -import { createExample } from "../test-utils"; -import { TalerActionFound as TestedComponent } from "./TalerActionFound"; +import { createExample } from "../test-utils.js"; +import { TalerActionFound as TestedComponent } from "./TalerActionFound.js"; export default { title: "popup/TalerActionFound", diff --git a/packages/taler-wallet-webextension/src/popup/TalerActionFound.tsx b/packages/taler-wallet-webextension/src/popup/TalerActionFound.tsx index 50ea32d12..babfcc8c8 100644 --- a/packages/taler-wallet-webextension/src/popup/TalerActionFound.tsx +++ b/packages/taler-wallet-webextension/src/popup/TalerActionFound.tsx @@ -21,9 +21,13 @@ import { classifyTalerUri, TalerUriType } from "@gnu-taler/taler-util"; import { Fragment, h } from "preact"; -import { platform } from "../platform/api"; -import { ButtonPrimary, ButtonSuccess, Title } from "../components/styled"; -import { useTranslationContext } from "../context/translation"; +import { platform } from "../platform/api.js"; +import { + ButtonPrimary, + ButtonSuccess, + Title, +} from "../components/styled/index.js"; +import { useTranslationContext } from "../context/translation.js"; export interface Props { url: string; diff --git a/packages/taler-wallet-webextension/src/popup/index.stories.tsx b/packages/taler-wallet-webextension/src/popup/index.stories.tsx index 6965e2dbc..e027f2611 100644 --- a/packages/taler-wallet-webextension/src/popup/index.stories.tsx +++ b/packages/taler-wallet-webextension/src/popup/index.stories.tsx @@ -19,7 +19,7 @@ * @author Sebastian Javier Marchano (sebasjm) */ -import * as a2 from "./Balance.stories"; -import * as a6 from "./TalerActionFound.stories"; +import * as a2 from "./Balance.stories.js"; +import * as a6 from "./TalerActionFound.stories.js"; export default [a2, a6]; |