diff options
author | Sebastian <sebasjm@gmail.com> | 2023-02-08 17:39:39 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2023-02-08 17:39:39 -0300 |
commit | 603efbd073a2a9aa56f801fe57d13f060821b05d (patch) | |
tree | 9ca8367dbbe6e47b2a11ac67bbc2747298fcd255 /packages/merchant-backoffice-ui/src/paths/instance/orders/list | |
parent | be01d1479cf650fe8eb0c8e567620abfa4544e1e (diff) | |
download | wallet-core-603efbd073a2a9aa56f801fe57d13f060821b05d.tar.xz |
use request api from web-util
Diffstat (limited to 'packages/merchant-backoffice-ui/src/paths/instance/orders/list')
-rw-r--r-- | packages/merchant-backoffice-ui/src/paths/instance/orders/list/index.tsx | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/packages/merchant-backoffice-ui/src/paths/instance/orders/list/index.tsx b/packages/merchant-backoffice-ui/src/paths/instance/orders/list/index.tsx index 3744ce8c5..bd0924808 100644 --- a/packages/merchant-backoffice-ui/src/paths/instance/orders/list/index.tsx +++ b/packages/merchant-backoffice-ui/src/paths/instance/orders/list/index.tsx @@ -19,13 +19,15 @@ * @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 { MerchantBackend } from "../../../../declaration.js"; -import { HttpError } from "../../../../utils/request.js"; import { InstanceOrderFilter, useInstanceOrders, @@ -38,7 +40,7 @@ import { RefundModal } from "./Table.js"; interface Props { onUnauthorized: () => VNode; - onLoadError: (error: HttpError) => VNode; + onLoadError: (error: HttpError<MerchantBackend.ErrorDetail>) => VNode; onNotFound: () => VNode; onSelect: (id: string) => void; onCreate: () => void; @@ -177,7 +179,7 @@ export default function OrderList({ interface RefundProps { id: string; onUnauthorized: () => VNode; - onLoadError: (error: HttpError) => VNode; + onLoadError: (error: HttpError<MerchantBackend.ErrorDetail>) => VNode; onNotFound: () => VNode; onCancel: () => void; onConfirm: (m: MerchantBackend.Orders.RefundRequest) => void; |