diff options
author | Nic Eigel <nic@eigel.ch> | 2024-01-14 17:44:02 +0100 |
---|---|---|
committer | Nic Eigel <nic@eigel.ch> | 2024-01-14 17:44:02 +0100 |
commit | a29db7a4a5311ab5b5d489a1eedfd1f4555773ae (patch) | |
tree | b6f0a43daf7b7eaf1ad95fe09171212c59b48546 /packages/auditor-backoffice-ui/src/paths/instance/deposit_confirmations/create | |
parent | e162a8cb655adc95c8cd8d87319a76c8e9792994 (diff) | |
download | wallet-core-a29db7a4a5311ab5b5d489a1eedfd1f4555773ae.tar.xz |
updating makefile, fixing auditor-backoffice
Diffstat (limited to 'packages/auditor-backoffice-ui/src/paths/instance/deposit_confirmations/create')
2 files changed, 1 insertions, 18 deletions
diff --git a/packages/auditor-backoffice-ui/src/paths/instance/deposit_confirmations/create/CreatedSuccessfully.tsx b/packages/auditor-backoffice-ui/src/paths/instance/deposit_confirmations/create/CreatedSuccessfully.tsx index 6b02430cc..573064aea 100644 --- a/packages/auditor-backoffice-ui/src/paths/instance/deposit_confirmations/create/CreatedSuccessfully.tsx +++ b/packages/auditor-backoffice-ui/src/paths/instance/deposit_confirmations/create/CreatedSuccessfully.tsx @@ -38,7 +38,6 @@ export function CreatedSuccessfully({ <div class="field-body is-flex-grow-3"> <div class="field"> <p class="control"> - <img src={entity.image} style={{ width: 200, height: 200 }} /> </p> </div> </div> @@ -50,7 +49,6 @@ export function CreatedSuccessfully({ <div class="field-body is-flex-grow-3"> <div class="field"> <p class="control"> - <textarea class="input" readonly value={entity.description} /> </p> </div> </div> @@ -62,7 +60,6 @@ export function CreatedSuccessfully({ <div class="field-body is-flex-grow-3"> <div class="field"> <p class="control"> - <input class="input" readonly value={entity.price} /> </p> </div> </div> diff --git a/packages/auditor-backoffice-ui/src/paths/instance/deposit_confirmations/create/index.tsx b/packages/auditor-backoffice-ui/src/paths/instance/deposit_confirmations/create/index.tsx index 4b59e9807..99599cfab 100644 --- a/packages/auditor-backoffice-ui/src/paths/instance/deposit_confirmations/create/index.tsx +++ b/packages/auditor-backoffice-ui/src/paths/instance/deposit_confirmations/create/index.tsx @@ -34,27 +34,13 @@ interface Props { onConfirm: () => void; } export default function CreateProduct({ onConfirm, onBack }: Props): VNode { - const { createProduct } = useProductAPI(); + const { createDepositConfirmation } = useDepositConfirmationAPI(); const [notif, setNotif] = useState<Notification | undefined>(undefined); const { i18n } = useTranslationContext(); return ( <Fragment> <NotificationCard notification={notif} /> - <CreatePage - onBack={onBack} - onCreate={(request: MerchantBackend.Products.ProductAddDetail) => { - return createProduct(request) - .then(() => onConfirm()) - .catch((error) => { - setNotif({ - message: i18n.str`could not create product`, - type: "ERROR", - description: error.message, - }); - }); - }} - /> </Fragment> ); } |