diff options
Diffstat (limited to 'packages/merchant-backoffice-ui/src/paths/admin/list/View.tsx')
-rw-r--r-- | packages/merchant-backoffice-ui/src/paths/admin/list/View.tsx | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/packages/merchant-backoffice-ui/src/paths/admin/list/View.tsx b/packages/merchant-backoffice-ui/src/paths/admin/list/View.tsx index b59112338..940d14334 100644 --- a/packages/merchant-backoffice-ui/src/paths/admin/list/View.tsx +++ b/packages/merchant-backoffice-ui/src/paths/admin/list/View.tsx @@ -1,6 +1,6 @@ /* This file is part of GNU Taler - (C) 2021-2023 Taler Systems S.A. + (C) 2021-2024 Taler Systems S.A. GNU Taler is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software @@ -19,20 +19,19 @@ * @author Sebastian Javier Marchano (sebasjm) */ +import { TalerMerchantApi } from "@gnu-taler/taler-util"; import { useTranslationContext } from "@gnu-taler/web-util/browser"; import { h, VNode } from "preact"; import { useState } from "preact/hooks"; -import { MerchantBackend } from "../../../declaration.js"; import { CardTable as CardTableActive } from "./TableActive.js"; interface Props { - instances: MerchantBackend.Instances.Instance[]; + instances: TalerMerchantApi.Instance[]; onCreate: () => void; onUpdate: (id: string) => void; - onDelete: (id: MerchantBackend.Instances.Instance) => void; - onPurge: (id: MerchantBackend.Instances.Instance) => void; + onDelete: (id: TalerMerchantApi.Instance) => void; + onPurge: (id: TalerMerchantApi.Instance) => void; selected?: boolean; - setInstanceName: (s: string) => void; } export function View({ @@ -41,7 +40,6 @@ export function View({ onDelete, onPurge, onUpdate, - setInstanceName, selected, }: Props): VNode { const [show, setShow] = useState<"active" | "deleted" | null>("active"); @@ -100,7 +98,6 @@ export function View({ instances={showingInstances} onDelete={onDelete} onPurge={onPurge} - setInstanceName={setInstanceName} onUpdate={onUpdate} selected={selected} onCreate={onCreate} |