diff options
Diffstat (limited to 'packages/merchant-backoffice-ui')
5 files changed, 17 insertions, 2 deletions
diff --git a/packages/merchant-backoffice-ui/src/paths/admin/create/Create.stories.tsx b/packages/merchant-backoffice-ui/src/paths/admin/create/Create.stories.tsx index 91b6b4b56..93ada2374 100644 --- a/packages/merchant-backoffice-ui/src/paths/admin/create/Create.stories.tsx +++ b/packages/merchant-backoffice-ui/src/paths/admin/create/Create.stories.tsx @@ -41,6 +41,11 @@ function createExample<Props>( value={{ currency: "ARS", version: "1", + currencies: { + currency: "TESTKUDOS" + }, + exchanges: [], + name: "taler-merchant" }} > <Component {...args} /> diff --git a/packages/merchant-backoffice-ui/src/paths/admin/create/stories.tsx b/packages/merchant-backoffice-ui/src/paths/admin/create/stories.tsx index 0012f9b9b..0161e9dc1 100644 --- a/packages/merchant-backoffice-ui/src/paths/admin/create/stories.tsx +++ b/packages/merchant-backoffice-ui/src/paths/admin/create/stories.tsx @@ -41,6 +41,11 @@ function createExample<Props>( value={{ currency: "TESTKUDOS", version: "1", + currencies: { + currency: "TESTKUDOS" + }, + exchanges: [], + name: "taler-merchant" }} > <Internal {...(props as any)} /> diff --git a/packages/merchant-backoffice-ui/src/paths/instance/details/stories.tsx b/packages/merchant-backoffice-ui/src/paths/instance/details/stories.tsx index 367fabce2..d7f61a8a5 100644 --- a/packages/merchant-backoffice-ui/src/paths/instance/details/stories.tsx +++ b/packages/merchant-backoffice-ui/src/paths/instance/details/stories.tsx @@ -41,6 +41,11 @@ function createExample<Props>( value={{ currency: "TESTKUDOS", version: "1", + currencies: { + currency: "TESTKUDOS" + }, + exchanges: [], + name: "taler-merchant" }} > <Internal {...(props as any)} /> diff --git a/packages/merchant-backoffice-ui/src/paths/instance/templates/update/index.tsx b/packages/merchant-backoffice-ui/src/paths/instance/templates/update/index.tsx index 3adca45db..fb9b1d8aa 100644 --- a/packages/merchant-backoffice-ui/src/paths/instance/templates/update/index.tsx +++ b/packages/merchant-backoffice-ui/src/paths/instance/templates/update/index.tsx @@ -80,7 +80,7 @@ export default function UpdateTemplate({ <Fragment> <NotificationCard notification={notif} /> <UpdatePage - template={{ ...result.data, id: tid }} + template={{ ...result.data }} onBack={onBack} onUpdate={(data) => { return updateTemplate(tid, data) diff --git a/packages/merchant-backoffice-ui/src/paths/settings/index.tsx b/packages/merchant-backoffice-ui/src/paths/settings/index.tsx index 87bd2fa39..8e69537ec 100644 --- a/packages/merchant-backoffice-ui/src/paths/settings/index.tsx +++ b/packages/merchant-backoffice-ui/src/paths/settings/index.tsx @@ -16,7 +16,7 @@ function getBrowserLang(): string | undefined { export function Settings({ onClose }: { onClose?: () => void }): VNode { const { i18n } = useTranslationContext() const borwserLang = getBrowserLang() - const { update } = useLang() + const { update } = useLang(undefined, {}) const [value, updateValue] = useSettings() const errors: FormErrors<Settings> = { |