diff options
author | Sebastian <sebasjm@gmail.com> | 2024-03-21 12:11:31 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2024-03-22 09:17:48 -0300 |
commit | a80044d9c3c3bc46a8bb48b4ba82fe799277380c (patch) | |
tree | 10ed80dcbb32b73e2623e26fdfee2b8125580748 /packages/merchant-backoffice-ui/src/paths/instance/orders/create/CreatePage.tsx | |
parent | a9540de313506200105f8c75ac219ffeb7622d78 (diff) | |
download | wallet-core-a80044d9c3c3bc46a8bb48b4ba82fe799277380c.tar.gz wallet-core-a80044d9c3c3bc46a8bb48b4ba82fe799277380c.tar.bz2 wallet-core-a80044d9c3c3bc46a8bb48b4ba82fe799277380c.zip |
wip
Diffstat (limited to 'packages/merchant-backoffice-ui/src/paths/instance/orders/create/CreatePage.tsx')
-rw-r--r-- | packages/merchant-backoffice-ui/src/paths/instance/orders/create/CreatePage.tsx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/packages/merchant-backoffice-ui/src/paths/instance/orders/create/CreatePage.tsx b/packages/merchant-backoffice-ui/src/paths/instance/orders/create/CreatePage.tsx index 62ceaa24b..5633d93ab 100644 --- a/packages/merchant-backoffice-ui/src/paths/instance/orders/create/CreatePage.tsx +++ b/packages/merchant-backoffice-ui/src/paths/instance/orders/create/CreatePage.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 @@ -41,7 +41,7 @@ import { NonInventoryProductFrom } from "../../../../components/product/NonInven import { ProductList } from "../../../../components/product/ProductList.js"; import { useConfigContext } from "../../../../context/config.js"; import { MerchantBackend, WithId } from "../../../../declaration.js"; -import { useSettings } from "../../../../hooks/useSettings.js"; +import { usePreference } from "../../../../hooks/preference.js"; import { OrderCreateSchema as schema } from "../../../../schemas/index.js"; import { rate } from "../../../../utils/amount.js"; import { undefinedIfEmpty } from "../../../../utils/table.js"; @@ -133,7 +133,7 @@ export function CreatePage({ const instance_default = with_defaults(instanceConfig, config.currency) const [value, valueHandler] = useState(instance_default); const zero = Amounts.zeroOfCurrency(config.currency); - const [settings, updateSettings] = useSettings() + const [settings, updateSettings] = usePreference() const inventoryList = Object.values(value.inventoryProducts || {}); const productList = Object.values(value.products || {}); |