diff options
Diffstat (limited to 'packages/merchant-backoffice-ui/src/paths/instance/templates/use/index.tsx')
-rw-r--r-- | packages/merchant-backoffice-ui/src/paths/instance/templates/use/index.tsx | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/packages/merchant-backoffice-ui/src/paths/instance/templates/use/index.tsx b/packages/merchant-backoffice-ui/src/paths/instance/templates/use/index.tsx index fa9a98c6d..d5fa6d39d 100644 --- a/packages/merchant-backoffice-ui/src/paths/instance/templates/use/index.tsx +++ b/packages/merchant-backoffice-ui/src/paths/instance/templates/use/index.tsx @@ -19,7 +19,10 @@ * @author Sebastian Javier Marchano (sebasjm) */ -import { useTranslationContext } from "@gnu-taler/web-util/lib/index.browser"; +import { + HttpError, + useTranslationContext, +} from "@gnu-taler/web-util/lib/index.browser"; import { Fragment, h, VNode } from "preact"; import { useState } from "preact/hooks"; import { Loading } from "../../../../components/exception/loading.js"; @@ -29,7 +32,6 @@ import { useTemplateAPI, useTemplateDetails, } from "../../../../hooks/templates.js"; -import { HttpError } from "../../../../utils/request.js"; import { Notification } from "../../../../utils/types.js"; import { UsePage } from "./UsePage.js"; @@ -39,7 +41,7 @@ interface Props { onOrderCreated: (id: string) => void; onUnauthorized: () => VNode; onNotFound: () => VNode; - onLoadError: (e: HttpError) => VNode; + onLoadError: (e: HttpError<MerchantBackend.ErrorDetail>) => VNode; tid: string; } |