diff options
Diffstat (limited to 'packages/merchant-backoffice-ui/src/paths/admin/list')
-rw-r--r-- | packages/merchant-backoffice-ui/src/paths/admin/list/index.tsx | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/packages/merchant-backoffice-ui/src/paths/admin/list/index.tsx b/packages/merchant-backoffice-ui/src/paths/admin/list/index.tsx index bac7a39eb..8efb5598d 100644 --- a/packages/merchant-backoffice-ui/src/paths/admin/list/index.tsx +++ b/packages/merchant-backoffice-ui/src/paths/admin/list/index.tsx @@ -19,14 +19,16 @@ * @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"; import { NotificationCard } from "../../../components/menu/index.js"; import { DeleteModal, PurgeModal } from "../../../components/modal/index.js"; import { MerchantBackend } from "../../../declaration.js"; -import { HttpError } from "../../../utils/request.js"; import { useAdminAPI, useBackendInstances } from "../../../hooks/instance.js"; import { Notification } from "../../../utils/types.js"; import { View } from "./View.js"; @@ -37,7 +39,7 @@ interface Props { instances: MerchantBackend.Instances.Instance[]; onUnauthorized: () => VNode; onNotFound: () => VNode; - onLoadError: (error: HttpError) => VNode; + onLoadError: (error: HttpError<MerchantBackend.ErrorDetail>) => VNode; setInstanceName: (s: string) => void; } |