taler-typescript-core

Wallet core logic and WebUIs for various components
Log | Files | Refs | Submodules | README | LICENSE

commit 01557a5c0abfa81dae69f2de9aba2382fd4ae39d
parent dcf109fd69add8b61acb570641fa1deeeef64fd1
Author: Sebastian <sebasjm@gmail.com>
Date:   Sat, 15 Nov 2025 18:19:27 -0300

fix #10597

Diffstat:
Mpackages/merchant-backoffice-ui/src/components/product/ProductForm.tsx | 4++--
Mpackages/merchant-backoffice-ui/src/paths/instance/products/create/CreatePage.tsx | 6++----
Mpackages/merchant-backoffice-ui/src/paths/instance/products/create/index.tsx | 5-----
3 files changed, 4 insertions(+), 11 deletions(-)

diff --git a/packages/merchant-backoffice-ui/src/components/product/ProductForm.tsx b/packages/merchant-backoffice-ui/src/components/product/ProductForm.tsx @@ -56,7 +56,7 @@ interface Props { export function ProductForm({ onSubscribe, initial, alreadyExist }: Props) { const { i18n } = useTranslationContext(); const { state, lib } = useSessionContext(); - const [preference] = usePreference(); + // const [preference] = usePreference(); // FIXME: if the category list is big the will bring a lot of info // we could find a lazy way to add up on searches @@ -190,7 +190,7 @@ export function ProductForm({ onSubscribe, initial, alreadyExist }: Props) { {alreadyExist ? undefined : ( <InputWithAddon<Entity> name="product_id" - addonBefore={new URL("product/", state.backendUrl.href).href} + // addonBefore={new URL("product/", state.backendUrl.href).href} label={i18n.str`ID`} addonBeforeLarge={state.backendUrl.href.length > 50} expand diff --git a/packages/merchant-backoffice-ui/src/paths/instance/products/create/CreatePage.tsx b/packages/merchant-backoffice-ui/src/paths/instance/products/create/CreatePage.tsx @@ -22,15 +22,13 @@ import { HttpStatusCode, TalerMerchantApi } from "@gnu-taler/taler-util"; import { ButtonBetterBulma, - LocalNotificationBanner, LocalNotificationBannerBulma, useLocalNotificationBetter, - useTranslationContext, + useTranslationContext } from "@gnu-taler/web-util/browser"; import { h, VNode } from "preact"; -import { ProductForm } from "../../../../components/product/ProductForm.js"; -import { useListener } from "../../../../hooks/listener.js"; import { useState } from "preact/hooks"; +import { ProductForm } from "../../../../components/product/ProductForm.js"; import { useSessionContext } from "../../../../context/session.js"; export interface Props { diff --git a/packages/merchant-backoffice-ui/src/paths/instance/products/create/index.tsx b/packages/merchant-backoffice-ui/src/paths/instance/products/create/index.tsx @@ -20,12 +20,7 @@ */ import { TalerMerchantApi } from "@gnu-taler/taler-util"; -import { LocalNotificationBannerBulma, useTranslationContext } from "@gnu-taler/web-util/browser"; import { Fragment, VNode, h } from "preact"; -import { useState } from "preact/hooks"; -import { NotificationCard } from "../../../../components/menu/index.js"; -import { useSessionContext } from "../../../../context/session.js"; -import { Notification } from "../../../../utils/types.js"; import { CreatePage } from "./CreatePage.js"; export type Entity = TalerMerchantApi.ProductAddDetail;