diff options
author | Sebastian <sebasjm@gmail.com> | 2022-11-04 10:24:29 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2022-11-04 11:56:04 -0300 |
commit | e6a95d246d14a8968833ce7dcfdf0e7622a610ee (patch) | |
tree | a49a49ec2df3a9a307500d8f4e1ff99a717752e7 /packages/merchant-backoffice-ui/src/paths/instance/reserves | |
parent | 66460e5650e19c12e105a8fe7560b9744c898b5d (diff) | |
download | wallet-core-e6a95d246d14a8968833ce7dcfdf0e7622a610ee.tar.xz |
fix imports
Diffstat (limited to 'packages/merchant-backoffice-ui/src/paths/instance/reserves')
14 files changed, 55 insertions, 55 deletions
diff --git a/packages/merchant-backoffice-ui/src/paths/instance/reserves/create/Create.stories.tsx b/packages/merchant-backoffice-ui/src/paths/instance/reserves/create/Create.stories.tsx index e138770a8..586881318 100644 --- a/packages/merchant-backoffice-ui/src/paths/instance/reserves/create/Create.stories.tsx +++ b/packages/merchant-backoffice-ui/src/paths/instance/reserves/create/Create.stories.tsx @@ -20,7 +20,7 @@ */ import { h, VNode, FunctionalComponent } from 'preact'; -import { CreatePage as TestedComponent } from './CreatePage'; +import { CreatePage as TestedComponent } from "./CreatePage.js"; export default { diff --git a/packages/merchant-backoffice-ui/src/paths/instance/reserves/create/CreatePage.tsx b/packages/merchant-backoffice-ui/src/paths/instance/reserves/create/CreatePage.tsx index 2e85cf9c8..7f2a49f93 100644 --- a/packages/merchant-backoffice-ui/src/paths/instance/reserves/create/CreatePage.tsx +++ b/packages/merchant-backoffice-ui/src/paths/instance/reserves/create/CreatePage.tsx @@ -21,16 +21,16 @@ import { Fragment, h, VNode } from "preact"; import { StateUpdater, useEffect, useState } from "preact/hooks"; -import { FormErrors, FormProvider } from "../../../../components/form/FormProvider"; -import { Input } from "../../../../components/form/Input"; -import { InputCurrency } from "../../../../components/form/InputCurrency"; -import { ExchangeBackend, MerchantBackend } from "../../../../declaration"; +import { FormErrors, FormProvider } from "../../../../components/form/FormProvider.js"; +import { Input } from "../../../../components/form/Input.js"; +import { InputCurrency } from "../../../../components/form/InputCurrency.js"; +import { ExchangeBackend, MerchantBackend } from "../../../../declaration.js"; import { Translate, useTranslator } from "../../../../i18n"; -import { AsyncButton } from "../../../../components/exception/AsyncButton"; +import { AsyncButton } from "../../../../components/exception/AsyncButton.js"; import { canonicalizeBaseUrl, ExchangeKeysJson } from "@gnu-taler/taler-util" -import { PAYTO_WIRE_METHOD_LOOKUP, URL_REGEX } from "../../../../utils/constants"; -import { request } from "../../../../hooks/backend"; -import { InputSelector } from "../../../../components/form/InputSelector"; +import { PAYTO_WIRE_METHOD_LOOKUP, URL_REGEX } from "../../../../utils/constants.js"; +import { request } from "../../../../hooks/backend.js"; +import { InputSelector } from "../../../../components/form/InputSelector.js"; type Entity = MerchantBackend.Tips.ReserveCreateRequest diff --git a/packages/merchant-backoffice-ui/src/paths/instance/reserves/create/CreatedSuccessfully.stories.tsx b/packages/merchant-backoffice-ui/src/paths/instance/reserves/create/CreatedSuccessfully.stories.tsx index f013040ff..0cea361fd 100644 --- a/packages/merchant-backoffice-ui/src/paths/instance/reserves/create/CreatedSuccessfully.stories.tsx +++ b/packages/merchant-backoffice-ui/src/paths/instance/reserves/create/CreatedSuccessfully.stories.tsx @@ -20,7 +20,7 @@ */ import { h, VNode, FunctionalComponent } from 'preact'; -import { CreatedSuccessfully as TestedComponent } from './CreatedSuccessfully'; +import { CreatedSuccessfully as TestedComponent } from "./CreatedSuccessfully.js"; export default { diff --git a/packages/merchant-backoffice-ui/src/paths/instance/reserves/create/CreatedSuccessfully.tsx b/packages/merchant-backoffice-ui/src/paths/instance/reserves/create/CreatedSuccessfully.tsx index 255486d22..6be260e3e 100644 --- a/packages/merchant-backoffice-ui/src/paths/instance/reserves/create/CreatedSuccessfully.tsx +++ b/packages/merchant-backoffice-ui/src/paths/instance/reserves/create/CreatedSuccessfully.tsx @@ -15,10 +15,10 @@ */ import { h, VNode } from "preact"; -import { CreatedSuccessfully as Template } from "../../../../components/notifications/CreatedSuccessfully"; -import { MerchantBackend } from "../../../../declaration"; +import { CreatedSuccessfully as Template } from "../../../../components/notifications/CreatedSuccessfully.js"; +import { MerchantBackend } from "../../../../declaration.js"; import { Translate } from "../../../../i18n"; -import { QR } from "../../../../components/exception/QR"; +import { QR } from "../../../../components/exception/QR.js"; type Entity = { request: MerchantBackend.Tips.ReserveCreateRequest, response: MerchantBackend.Tips.ReserveCreateConfirmation }; diff --git a/packages/merchant-backoffice-ui/src/paths/instance/reserves/create/index.tsx b/packages/merchant-backoffice-ui/src/paths/instance/reserves/create/index.tsx index 5c2fdaf4b..3a793db9b 100644 --- a/packages/merchant-backoffice-ui/src/paths/instance/reserves/create/index.tsx +++ b/packages/merchant-backoffice-ui/src/paths/instance/reserves/create/index.tsx @@ -21,13 +21,13 @@ import { Fragment, h, VNode } from "preact"; import { useState } from "preact/hooks"; -import { NotificationCard } from "../../../../components/menu"; -import { MerchantBackend } from "../../../../declaration"; -import { useReservesAPI } from "../../../../hooks/reserves"; +import { NotificationCard } from "../../../../components/menu.js"; +import { MerchantBackend } from "../../../../declaration.js"; +import { useReservesAPI } from "../../../../hooks/reserves.js"; import { useTranslator } from "../../../../i18n"; -import { Notification } from "../../../../utils/types"; -import { CreatedSuccessfully } from "./CreatedSuccessfully"; -import { CreatePage } from "./CreatePage"; +import { Notification } from "../../../../utils/types.js"; +import { CreatedSuccessfully } from "./CreatedSuccessfully.js"; +import { CreatePage } from "./CreatePage.js"; interface Props { onBack: () => void; onConfirm: () => void; diff --git a/packages/merchant-backoffice-ui/src/paths/instance/reserves/details/DetailPage.tsx b/packages/merchant-backoffice-ui/src/paths/instance/reserves/details/DetailPage.tsx index cbc70179b..1ad94ac43 100644 --- a/packages/merchant-backoffice-ui/src/paths/instance/reserves/details/DetailPage.tsx +++ b/packages/merchant-backoffice-ui/src/paths/instance/reserves/details/DetailPage.tsx @@ -23,17 +23,17 @@ import { Amounts } from "@gnu-taler/taler-util"; import { format } from "date-fns"; import { Fragment, h, VNode } from "preact"; import { useState } from "preact/hooks"; -import { QR } from "../../../../components/exception/QR"; -import { FormProvider } from "../../../../components/form/FormProvider"; -import { Input } from "../../../../components/form/Input"; -import { InputCurrency } from "../../../../components/form/InputCurrency"; -import { InputDate } from "../../../../components/form/InputDate"; -import { TextField } from "../../../../components/form/TextField"; -import { ContinueModal, SimpleModal } from "../../../../components/modal"; -import { MerchantBackend } from "../../../../declaration"; -import { useTipDetails } from "../../../../hooks/reserves"; +import { QR } from "../../../../components/exception/QR.js"; +import { FormProvider } from "../../../../components/form/FormProvider.js"; +import { Input } from "../../../../components/form/Input.js"; +import { InputCurrency } from "../../../../components/form/InputCurrency.js"; +import { InputDate } from "../../../../components/form/InputDate.js"; +import { TextField } from "../../../../components/form/TextField.js"; +import { ContinueModal, SimpleModal } from "../../../../components/modal.js"; +import { MerchantBackend } from "../../../../declaration.js"; +import { useTipDetails } from "../../../../hooks/reserves.js"; import { Translate, useTranslator } from "../../../../i18n"; -import { TipInfo } from "./TipInfo"; +import { TipInfo } from "./TipInfo.js"; type Entity = MerchantBackend.Tips.ReserveDetail; type CT = MerchantBackend.ContractTerms; diff --git a/packages/merchant-backoffice-ui/src/paths/instance/reserves/details/Details.stories.tsx b/packages/merchant-backoffice-ui/src/paths/instance/reserves/details/Details.stories.tsx index 98c1fa72e..48a12f02a 100644 --- a/packages/merchant-backoffice-ui/src/paths/instance/reserves/details/Details.stories.tsx +++ b/packages/merchant-backoffice-ui/src/paths/instance/reserves/details/Details.stories.tsx @@ -20,7 +20,7 @@ */ import { h, VNode, FunctionalComponent } from "preact"; -import { DetailPage as TestedComponent } from "./DetailPage"; +import { DetailPage as TestedComponent } from "./DetailPage.js"; export default { title: "Pages/Reserve/Detail", diff --git a/packages/merchant-backoffice-ui/src/paths/instance/reserves/details/TipInfo.tsx b/packages/merchant-backoffice-ui/src/paths/instance/reserves/details/TipInfo.tsx index 3f384966b..02bc6f6df 100644 --- a/packages/merchant-backoffice-ui/src/paths/instance/reserves/details/TipInfo.tsx +++ b/packages/merchant-backoffice-ui/src/paths/instance/reserves/details/TipInfo.tsx @@ -15,8 +15,8 @@ */ import { format } from "date-fns"; import { Fragment, h, VNode } from "preact"; -import { useBackendContext } from "../../../../context/backend"; -import { MerchantBackend } from "../../../../declaration"; +import { useBackendContext } from "../../../../context/backend.js"; +import { MerchantBackend } from "../../../../declaration.js"; type Entity = MerchantBackend.Tips.TipDetails; diff --git a/packages/merchant-backoffice-ui/src/paths/instance/reserves/details/index.tsx b/packages/merchant-backoffice-ui/src/paths/instance/reserves/details/index.tsx index c2483f053..882c2adac 100644 --- a/packages/merchant-backoffice-ui/src/paths/instance/reserves/details/index.tsx +++ b/packages/merchant-backoffice-ui/src/paths/instance/reserves/details/index.tsx @@ -20,10 +20,10 @@ */ import { Fragment, h, VNode } from "preact"; -import { Loading } from "../../../../components/exception/loading"; -import { HttpError } from "../../../../hooks/backend"; -import { useReserveDetails } from "../../../../hooks/reserves"; -import { DetailPage } from "./DetailPage"; +import { Loading } from "../../../../components/exception/loading.js"; +import { HttpError } from "../../../../hooks/backend.js"; +import { useReserveDetails } from "../../../../hooks/reserves.js"; +import { DetailPage } from "./DetailPage.js"; interface Props { rid: string; diff --git a/packages/merchant-backoffice-ui/src/paths/instance/reserves/list/AutorizeTipModal.tsx b/packages/merchant-backoffice-ui/src/paths/instance/reserves/list/AutorizeTipModal.tsx index ec468b2e9..0cee19c61 100644 --- a/packages/merchant-backoffice-ui/src/paths/instance/reserves/list/AutorizeTipModal.tsx +++ b/packages/merchant-backoffice-ui/src/paths/instance/reserves/list/AutorizeTipModal.tsx @@ -21,14 +21,14 @@ import { h, VNode } from "preact"; import { useState } from "preact/hooks"; -import { FormErrors, FormProvider } from "../../../../components/form/FormProvider"; -import { Input } from "../../../../components/form/Input"; -import { InputCurrency } from "../../../../components/form/InputCurrency"; -import { ConfirmModal, ContinueModal } from "../../../../components/modal"; -import { MerchantBackend } from "../../../../declaration"; +import { FormErrors, FormProvider } from "../../../../components/form/FormProvider.js"; +import { Input } from "../../../../components/form/Input.js"; +import { InputCurrency } from "../../../../components/form/InputCurrency.js"; +import { ConfirmModal, ContinueModal } from "../../../../components/modal.js"; +import { MerchantBackend } from "../../../../declaration.js"; import { useTranslator } from "../../../../i18n"; -import { AuthorizeTipSchema } from "../../../../schemas"; -import { CreatedSuccessfully } from "./CreatedSuccessfully"; +import { AuthorizeTipSchema } from "../../../../schemas.js"; +import { CreatedSuccessfully } from "./CreatedSuccessfully.js"; import * as yup from 'yup'; interface AuthorizeTipModalProps { diff --git a/packages/merchant-backoffice-ui/src/paths/instance/reserves/list/CreatedSuccessfully.tsx b/packages/merchant-backoffice-ui/src/paths/instance/reserves/list/CreatedSuccessfully.tsx index 1e5f0758f..92a21bfd1 100644 --- a/packages/merchant-backoffice-ui/src/paths/instance/reserves/list/CreatedSuccessfully.tsx +++ b/packages/merchant-backoffice-ui/src/paths/instance/reserves/list/CreatedSuccessfully.tsx @@ -15,8 +15,8 @@ */ import { format } from "date-fns"; import { Fragment, h, VNode } from "preact"; -import { CreatedSuccessfully as Template } from "../../../../components/notifications/CreatedSuccessfully"; -import { MerchantBackend } from "../../../../declaration"; +import { CreatedSuccessfully as Template } from "../../../../components/notifications/CreatedSuccessfully.js"; +import { MerchantBackend } from "../../../../declaration.js"; type Entity = MerchantBackend.Tips.TipCreateConfirmation; diff --git a/packages/merchant-backoffice-ui/src/paths/instance/reserves/list/List.stories.tsx b/packages/merchant-backoffice-ui/src/paths/instance/reserves/list/List.stories.tsx index 1cb9e748c..7a4e9ff42 100644 --- a/packages/merchant-backoffice-ui/src/paths/instance/reserves/list/List.stories.tsx +++ b/packages/merchant-backoffice-ui/src/paths/instance/reserves/list/List.stories.tsx @@ -20,7 +20,7 @@ */ import { h, VNode, FunctionalComponent } from "preact"; -import { CardTable as TestedComponent } from "./Table"; +import { CardTable as TestedComponent } from "./Table.js"; export default { title: "Pages/Reserve/List", diff --git a/packages/merchant-backoffice-ui/src/paths/instance/reserves/list/Table.tsx b/packages/merchant-backoffice-ui/src/paths/instance/reserves/list/Table.tsx index b3bb7b020..e44226f20 100644 --- a/packages/merchant-backoffice-ui/src/paths/instance/reserves/list/Table.tsx +++ b/packages/merchant-backoffice-ui/src/paths/instance/reserves/list/Table.tsx @@ -21,7 +21,7 @@ import { format } from "date-fns"; import { Fragment, h, VNode } from "preact"; -import { MerchantBackend, WithId } from "../../../../declaration"; +import { MerchantBackend, WithId } from "../../../../declaration.js"; import { Translate, useTranslator } from "../../../../i18n"; type Entity = MerchantBackend.Tips.ReserveStatusEntry & WithId; diff --git a/packages/merchant-backoffice-ui/src/paths/instance/reserves/list/index.tsx b/packages/merchant-backoffice-ui/src/paths/instance/reserves/list/index.tsx index f071b5635..331010bdf 100644 --- a/packages/merchant-backoffice-ui/src/paths/instance/reserves/list/index.tsx +++ b/packages/merchant-backoffice-ui/src/paths/instance/reserves/list/index.tsx @@ -21,18 +21,18 @@ import { h, VNode } from "preact"; import { useState } from "preact/hooks"; -import { Loading } from "../../../../components/exception/loading"; -import { NotificationCard } from "../../../../components/menu"; -import { MerchantBackend } from "../../../../declaration"; -import { HttpError } from "../../../../hooks/backend"; +import { Loading } from "../../../../components/exception/loading.js"; +import { NotificationCard } from "../../../../components/menu.js"; +import { MerchantBackend } from "../../../../declaration.js"; +import { HttpError } from "../../../../hooks/backend.js"; import { useInstanceReserves, useReservesAPI, -} from "../../../../hooks/reserves"; +} from "../../../../hooks/reserves.js"; import { useTranslator } from "../../../../i18n"; -import { Notification } from "../../../../utils/types"; -import { CardTable } from "./Table"; -import { AuthorizeTipModal } from "./AutorizeTipModal"; +import { Notification } from "../../../../utils/types.js"; +import { CardTable } from "./Table.js"; +import { AuthorizeTipModal } from "./AutorizeTipModal.js"; interface Props { onUnauthorized: () => VNode; |