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/hooks | |
parent | f5d194dfc61ae0d358a27b994861dc20b83cf98e (diff) | |
download | wallet-core-e2651bdff2eac072ed2394f69e2cf59a8c53cdba.tar.xz |
add extension to every import
Diffstat (limited to 'packages/taler-wallet-webextension/src/hooks')
8 files changed, 12 insertions, 12 deletions
diff --git a/packages/taler-wallet-webextension/src/hooks/useAsyncAsHook.ts b/packages/taler-wallet-webextension/src/hooks/useAsyncAsHook.ts index 8d31de94f..5bd2d6f81 100644 --- a/packages/taler-wallet-webextension/src/hooks/useAsyncAsHook.ts +++ b/packages/taler-wallet-webextension/src/hooks/useAsyncAsHook.ts @@ -20,7 +20,7 @@ import { } from "@gnu-taler/taler-util"; import { TalerError } from "@gnu-taler/taler-wallet-core"; import { useEffect, useState } from "preact/hooks"; -import * as wxApi from "../wxApi"; +import * as wxApi from "../wxApi.js"; interface HookOk<T> { hasError: false; diff --git a/packages/taler-wallet-webextension/src/hooks/useBackupDeviceName.ts b/packages/taler-wallet-webextension/src/hooks/useBackupDeviceName.ts index 1aa711a90..7f484b0a4 100644 --- a/packages/taler-wallet-webextension/src/hooks/useBackupDeviceName.ts +++ b/packages/taler-wallet-webextension/src/hooks/useBackupDeviceName.ts @@ -15,7 +15,7 @@ */ import { useEffect, useState } from "preact/hooks"; -import * as wxApi from "../wxApi"; +import * as wxApi from "../wxApi.js"; export interface BackupDeviceName { name: string; diff --git a/packages/taler-wallet-webextension/src/hooks/useDiagnostics.ts b/packages/taler-wallet-webextension/src/hooks/useDiagnostics.ts index 48aff2602..c4baeb3cf 100644 --- a/packages/taler-wallet-webextension/src/hooks/useDiagnostics.ts +++ b/packages/taler-wallet-webextension/src/hooks/useDiagnostics.ts @@ -16,7 +16,7 @@ import { WalletDiagnostics } from "@gnu-taler/taler-util"; import { useEffect, useState } from "preact/hooks"; -import * as wxApi from "../wxApi"; +import * as wxApi from "../wxApi.js"; export function useDiagnostics(): [WalletDiagnostics | undefined, boolean] { const [timedOut, setTimedOut] = useState(false); diff --git a/packages/taler-wallet-webextension/src/hooks/useExtendedPermissions.ts b/packages/taler-wallet-webextension/src/hooks/useExtendedPermissions.ts index f0ec2ca45..8d563cb6d 100644 --- a/packages/taler-wallet-webextension/src/hooks/useExtendedPermissions.ts +++ b/packages/taler-wallet-webextension/src/hooks/useExtendedPermissions.ts @@ -15,9 +15,9 @@ */ import { useState, useEffect } from "preact/hooks"; -import * as wxApi from "../wxApi"; -import { platform } from "../platform/api"; -import { getReadRequestPermissions } from "../permissions"; +import * as wxApi from "../wxApi.js"; +import { platform } from "../platform/api.js"; +import { getReadRequestPermissions } from "../permissions.js"; export function useExtendedPermissions(): [boolean, () => Promise<void>] { const [enabled, setEnabled] = useState(false); diff --git a/packages/taler-wallet-webextension/src/hooks/useLang.ts b/packages/taler-wallet-webextension/src/hooks/useLang.ts index 959297647..0436f25df 100644 --- a/packages/taler-wallet-webextension/src/hooks/useLang.ts +++ b/packages/taler-wallet-webextension/src/hooks/useLang.ts @@ -14,7 +14,7 @@ GNU Taler; see the file COPYING. If not, see <http://www.gnu.org/licenses/> */ -import { useNotNullLocalStorage } from "./useLocalStorage"; +import { useNotNullLocalStorage } from "./useLocalStorage.js"; function getBrowserLang(): string | undefined { if (window.navigator.languages) return window.navigator.languages[0] diff --git a/packages/taler-wallet-webextension/src/hooks/useProviderStatus.ts b/packages/taler-wallet-webextension/src/hooks/useProviderStatus.ts index ea167463e..14af7c0aa 100644 --- a/packages/taler-wallet-webextension/src/hooks/useProviderStatus.ts +++ b/packages/taler-wallet-webextension/src/hooks/useProviderStatus.ts @@ -16,7 +16,7 @@ import { ProviderInfo } from "@gnu-taler/taler-wallet-core"; import { useEffect, useState } from "preact/hooks"; -import * as wxApi from "../wxApi"; +import * as wxApi from "../wxApi.js"; export interface ProviderStatus { info?: ProviderInfo; diff --git a/packages/taler-wallet-webextension/src/hooks/useTalerActionURL.test.ts b/packages/taler-wallet-webextension/src/hooks/useTalerActionURL.test.ts index 082b3a05c..ed51d00ee 100644 --- a/packages/taler-wallet-webextension/src/hooks/useTalerActionURL.test.ts +++ b/packages/taler-wallet-webextension/src/hooks/useTalerActionURL.test.ts @@ -13,9 +13,9 @@ You should have received a copy of the GNU General Public License along with GNU Taler; see the file COPYING. If not, see <http://www.gnu.org/licenses/> */ -import { useTalerActionURL } from "./useTalerActionURL" -import { mountHook } from "../test-utils"; -import { IoCProviderForTesting } from "../context/iocContext"; +import { useTalerActionURL } from "./useTalerActionURL.js" +import { mountHook } from "../test-utils.js"; +import { IoCProviderForTesting } from "../context/iocContext.js"; import { h, VNode } from "preact"; import { expect } from "chai"; diff --git a/packages/taler-wallet-webextension/src/hooks/useTalerActionURL.ts b/packages/taler-wallet-webextension/src/hooks/useTalerActionURL.ts index 53e1e912d..be0a3262e 100644 --- a/packages/taler-wallet-webextension/src/hooks/useTalerActionURL.ts +++ b/packages/taler-wallet-webextension/src/hooks/useTalerActionURL.ts @@ -15,7 +15,7 @@ */ import { useEffect, useState } from "preact/hooks"; -import { useIocContext } from "../context/iocContext"; +import { useIocContext } from "../context/iocContext.js"; export function useTalerActionURL(): [ string | undefined, |