diff options
Diffstat (limited to 'packages/merchant-backoffice-ui/src/components/product/InventoryProductForm.tsx')
-rw-r--r-- | packages/merchant-backoffice-ui/src/components/product/InventoryProductForm.tsx | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/packages/merchant-backoffice-ui/src/components/product/InventoryProductForm.tsx b/packages/merchant-backoffice-ui/src/components/product/InventoryProductForm.tsx index b2ec4dd11..377d9c1ba 100644 --- a/packages/merchant-backoffice-ui/src/components/product/InventoryProductForm.tsx +++ b/packages/merchant-backoffice-ui/src/components/product/InventoryProductForm.tsx @@ -20,7 +20,7 @@ import { MerchantBackend, WithId } from "../../declaration.js"; import { ProductMap } from "../../paths/instance/orders/create/CreatePage.js"; import { FormErrors, FormProvider } from "../form/FormProvider.js"; import { InputNumber } from "../form/InputNumber.js"; -import { InputSearchProduct } from "../form/InputSearchProduct.js"; +import { InputSearchOnList } from "../form/InputSearchOnList.js"; type Form = { product: MerchantBackend.Products.ProductDetail & WithId; @@ -95,10 +95,12 @@ export function InventoryProductForm({ return ( <FormProvider<Form> errors={errors} object={state} valueHandler={setState}> - <InputSearchProduct + <InputSearchOnList + label={i18n.str`Search product`} selected={state.product} onChange={(p) => setState((v) => ({ ...v, product: p }))} - products={inventory} + list={inventory} + withImage /> {state.product && ( <div class="columns mt-5"> |