aboutsummaryrefslogtreecommitdiff
path: root/packages/merchant-backoffice-ui/src/hooks
diff options
context:
space:
mode:
authorSebastian <sebasjm@gmail.com>2022-11-04 10:24:29 -0300
committerSebastian <sebasjm@gmail.com>2022-11-04 11:56:04 -0300
commite6a95d246d14a8968833ce7dcfdf0e7622a610ee (patch)
treea49a49ec2df3a9a307500d8f4e1ff99a717752e7 /packages/merchant-backoffice-ui/src/hooks
parent66460e5650e19c12e105a8fe7560b9744c898b5d (diff)
downloadwallet-core-e6a95d246d14a8968833ce7dcfdf0e7622a610ee.tar.xz
fix imports
Diffstat (limited to 'packages/merchant-backoffice-ui/src/hooks')
-rw-r--r--packages/merchant-backoffice-ui/src/hooks/async.ts2
-rw-r--r--packages/merchant-backoffice-ui/src/hooks/backend.ts8
-rw-r--r--packages/merchant-backoffice-ui/src/hooks/index.ts2
-rw-r--r--packages/merchant-backoffice-ui/src/hooks/instance.ts8
-rw-r--r--packages/merchant-backoffice-ui/src/hooks/notifications.ts2
-rw-r--r--packages/merchant-backoffice-ui/src/hooks/order.ts10
-rw-r--r--packages/merchant-backoffice-ui/src/hooks/product.ts8
-rw-r--r--packages/merchant-backoffice-ui/src/hooks/reserves.ts8
-rw-r--r--packages/merchant-backoffice-ui/src/hooks/transfer.ts10
9 files changed, 29 insertions, 29 deletions
diff --git a/packages/merchant-backoffice-ui/src/hooks/async.ts b/packages/merchant-backoffice-ui/src/hooks/async.ts
index fd550043b..69cb231a4 100644
--- a/packages/merchant-backoffice-ui/src/hooks/async.ts
+++ b/packages/merchant-backoffice-ui/src/hooks/async.ts
@@ -19,7 +19,7 @@
* @author Sebastian Javier Marchano (sebasjm)
*/
import { useState } from "preact/hooks";
-import { cancelPendingRequest } from "./backend";
+import { cancelPendingRequest } from "./backend.js";
export interface Options {
slowTolerance: number,
diff --git a/packages/merchant-backoffice-ui/src/hooks/backend.ts b/packages/merchant-backoffice-ui/src/hooks/backend.ts
index 789cfc81c..6262a0bca 100644
--- a/packages/merchant-backoffice-ui/src/hooks/backend.ts
+++ b/packages/merchant-backoffice-ui/src/hooks/backend.ts
@@ -21,11 +21,11 @@
import { useSWRConfig } from "swr";
import axios, { AxiosError, AxiosResponse } from "axios";
-import { MerchantBackend } from "../declaration";
-import { useBackendContext } from "../context/backend";
+import { MerchantBackend } from "../declaration.js";
+import { useBackendContext } from "../context/backend.js";
import { useEffect, useState } from "preact/hooks";
-import { DEFAULT_REQUEST_TIMEOUT } from "../utils/constants";
-import { axiosHandler, removeAxiosCancelToken } from "../utils/switchableAxios";
+import { DEFAULT_REQUEST_TIMEOUT } from "../utils/constants.js";
+import { axiosHandler, removeAxiosCancelToken } from "../utils/switchableAxios.js";
export function useMatchMutate(): (
re: RegExp,
diff --git a/packages/merchant-backoffice-ui/src/hooks/index.ts b/packages/merchant-backoffice-ui/src/hooks/index.ts
index a647e3e6c..e61dc4c34 100644
--- a/packages/merchant-backoffice-ui/src/hooks/index.ts
+++ b/packages/merchant-backoffice-ui/src/hooks/index.ts
@@ -20,7 +20,7 @@
*/
import { StateUpdater, useCallback, useState } from "preact/hooks";
-import { ValueOrFunction } from '../utils/types';
+import { ValueOrFunction } from "../utils/types.js";
const calculateRootPath = () => {
diff --git a/packages/merchant-backoffice-ui/src/hooks/instance.ts b/packages/merchant-backoffice-ui/src/hooks/instance.ts
index 748bb82af..fd78aabf6 100644
--- a/packages/merchant-backoffice-ui/src/hooks/instance.ts
+++ b/packages/merchant-backoffice-ui/src/hooks/instance.ts
@@ -14,9 +14,9 @@
GNU Taler; see the file COPYING. If not, see <http://www.gnu.org/licenses/>
*/
import useSWR, { useSWRConfig } from "swr";
-import { useBackendContext } from "../context/backend";
-import { useInstanceContext } from "../context/instance";
-import { MerchantBackend } from "../declaration";
+import { useBackendContext } from "../context/backend.js";
+import { useInstanceContext } from "../context/instance.js";
+import { MerchantBackend } from "../declaration.js";
import {
fetcher,
HttpError,
@@ -24,7 +24,7 @@ import {
HttpResponseOk,
request,
useMatchMutate,
-} from "./backend";
+} from "./backend.js";
interface InstanceAPI {
updateInstance: (
diff --git a/packages/merchant-backoffice-ui/src/hooks/notifications.ts b/packages/merchant-backoffice-ui/src/hooks/notifications.ts
index 1c0c37308..9c5e21c79 100644
--- a/packages/merchant-backoffice-ui/src/hooks/notifications.ts
+++ b/packages/merchant-backoffice-ui/src/hooks/notifications.ts
@@ -20,7 +20,7 @@
*/
import { useState } from "preact/hooks";
-import { Notification } from '../utils/types';
+import { Notification } from "../utils/types.js";
interface Result {
notifications: Notification[];
diff --git a/packages/merchant-backoffice-ui/src/hooks/order.ts b/packages/merchant-backoffice-ui/src/hooks/order.ts
index d0829683d..a25d18681 100644
--- a/packages/merchant-backoffice-ui/src/hooks/order.ts
+++ b/packages/merchant-backoffice-ui/src/hooks/order.ts
@@ -15,10 +15,10 @@
*/
import { useEffect, useState } from "preact/hooks";
import useSWR, { useSWRConfig } from "swr";
-import { useBackendContext } from "../context/backend";
-import { useInstanceContext } from "../context/instance";
-import { MerchantBackend } from "../declaration";
-import { MAX_RESULT_SIZE, PAGE_SIZE } from "../utils/constants";
+import { useBackendContext } from "../context/backend.js";
+import { useInstanceContext } from "../context/instance.js";
+import { MerchantBackend } from "../declaration.js";
+import { MAX_RESULT_SIZE, PAGE_SIZE } from "../utils/constants.js";
import {
fetcher,
HttpError,
@@ -27,7 +27,7 @@ import {
HttpResponsePaginated,
request,
useMatchMutate,
-} from "./backend";
+} from "./backend.js";
export interface OrderAPI {
//FIXME: add OutOfStockResponse on 410
diff --git a/packages/merchant-backoffice-ui/src/hooks/product.ts b/packages/merchant-backoffice-ui/src/hooks/product.ts
index c99542bc9..2b6332c51 100644
--- a/packages/merchant-backoffice-ui/src/hooks/product.ts
+++ b/packages/merchant-backoffice-ui/src/hooks/product.ts
@@ -14,9 +14,9 @@
GNU Taler; see the file COPYING. If not, see <http://www.gnu.org/licenses/>
*/
import useSWR, { useSWRConfig } from "swr";
-import { useBackendContext } from "../context/backend";
-import { useInstanceContext } from "../context/instance";
-import { MerchantBackend, WithId } from "../declaration";
+import { useBackendContext } from "../context/backend.js";
+import { useInstanceContext } from "../context/instance.js";
+import { MerchantBackend, WithId } from "../declaration.js";
import {
fetcher,
HttpError,
@@ -25,7 +25,7 @@ import {
multiFetcher,
request,
useMatchMutate
-} from "./backend";
+} from "./backend.js";
export interface ProductAPI {
createProduct: (
diff --git a/packages/merchant-backoffice-ui/src/hooks/reserves.ts b/packages/merchant-backoffice-ui/src/hooks/reserves.ts
index 7a662dfbc..d1dcb0b7a 100644
--- a/packages/merchant-backoffice-ui/src/hooks/reserves.ts
+++ b/packages/merchant-backoffice-ui/src/hooks/reserves.ts
@@ -14,9 +14,9 @@
GNU Taler; see the file COPYING. If not, see <http://www.gnu.org/licenses/>
*/
import useSWR, { useSWRConfig } from "swr";
-import { useBackendContext } from "../context/backend";
-import { useInstanceContext } from "../context/instance";
-import { MerchantBackend } from "../declaration";
+import { useBackendContext } from "../context/backend.js";
+import { useInstanceContext } from "../context/instance.js";
+import { MerchantBackend } from "../declaration.js";
import {
fetcher,
HttpError,
@@ -24,7 +24,7 @@ import {
HttpResponseOk,
request,
useMatchMutate,
-} from "./backend";
+} from "./backend.js";
export function useReservesAPI(): ReserveMutateAPI {
const mutateAll = useMatchMutate();
diff --git a/packages/merchant-backoffice-ui/src/hooks/transfer.ts b/packages/merchant-backoffice-ui/src/hooks/transfer.ts
index 0c12d6d4d..fddbc7cda 100644
--- a/packages/merchant-backoffice-ui/src/hooks/transfer.ts
+++ b/packages/merchant-backoffice-ui/src/hooks/transfer.ts
@@ -13,8 +13,8 @@
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 { MerchantBackend } from "../declaration";
-import { useBackendContext } from "../context/backend";
+import { MerchantBackend } from "../declaration.js";
+import { useBackendContext } from "../context/backend.js";
import {
request,
HttpResponse,
@@ -22,10 +22,10 @@ import {
HttpResponseOk,
HttpResponsePaginated,
useMatchMutate,
-} from "./backend";
+} from "./backend.js";
import useSWR from "swr";
-import { useInstanceContext } from "../context/instance";
-import { MAX_RESULT_SIZE, PAGE_SIZE } from "../utils/constants";
+import { useInstanceContext } from "../context/instance.js";
+import { MAX_RESULT_SIZE, PAGE_SIZE } from "../utils/constants.js";
import { useEffect, useState } from "preact/hooks";
async function transferFetcher<T>(