From 9f08f6e95c6b76ce12d7946901787f8a6884533b Mon Sep 17 00:00:00 2001 From: Sebastian Date: Thu, 13 Jun 2024 10:46:14 -0300 Subject: fix issues found in QC meeting - templates payment timeout en merchant backoffice has a layout problem - Summary is editable with empty summary - better example for account info url - repeat password - delete transfers --- .../src/components/form/InputDuration.tsx | 118 ++++++++++----------- .../src/components/form/InputWithAddon.tsx | 1 + .../src/components/menu/index.tsx | 6 ++ 3 files changed, 66 insertions(+), 59 deletions(-) (limited to 'packages/merchant-backoffice-ui/src/components') diff --git a/packages/merchant-backoffice-ui/src/components/form/InputDuration.tsx b/packages/merchant-backoffice-ui/src/components/form/InputDuration.tsx index ad3cb0e32..080b9508e 100644 --- a/packages/merchant-backoffice-ui/src/components/form/InputDuration.tsx +++ b/packages/merchant-backoffice-ui/src/components/form/InputDuration.tsx @@ -52,14 +52,18 @@ export function InputDuration({ const { error, required, value: anyValue, onChange } = useField(name); let strValue = ""; - const value: Duration = anyValue + const value: Duration = anyValue; if (!value) { strValue = ""; } else if (value.d_ms === "forever") { strValue = i18n.str`forever`; } else { if (value.d_ms === undefined) { - throw Error(`assertion error: duration should have a d_ms but got '${JSON.stringify(value)}'`) + throw Error( + `assertion error: duration should have a d_ms but got '${JSON.stringify( + value, + )}'`, + ); } strValue = formatDuration( intervalToDuration({ start: 0, end: value.d_ms }), @@ -96,7 +100,7 @@ export function InputDuration({ return (
-
+
-
-
-
-
-

- { - if (!readonly) setOpened(true); - }} - /> - {required && ( - - - - )} -

-
+
+
+

+ { if (!readonly) setOpened(true); }} - > - - - - - -

+ /> + {required && ( + + + + )} +

+
{ + if (!readonly) setOpened(true); + }} + > + + + + +
- {error &&

{error}

}
- {withForever && ( - - - - )} - {!readonly && !withoutClear && ( - - - - )} - {side} + {error &&

{error}

} + {help}
- - {help} - -
+ {withForever && ( + + + + )} + {!readonly && !withoutClear && ( + + + + )} + {side} +
{opened && ( setOpened(false)}> diff --git a/packages/merchant-backoffice-ui/src/components/form/InputWithAddon.tsx b/packages/merchant-backoffice-ui/src/components/form/InputWithAddon.tsx index b8cd4c2d2..04bcbc2be 100644 --- a/packages/merchant-backoffice-ui/src/components/form/InputWithAddon.tsx +++ b/packages/merchant-backoffice-ui/src/components/form/InputWithAddon.tsx @@ -69,6 +69,7 @@ export function InputWithAddon({ )}
+
diff --git a/packages/merchant-backoffice-ui/src/components/menu/index.tsx b/packages/merchant-backoffice-ui/src/components/menu/index.tsx index 123271f8d..baab9584c 100644 --- a/packages/merchant-backoffice-ui/src/components/menu/index.tsx +++ b/packages/merchant-backoffice-ui/src/components/menu/index.tsx @@ -28,6 +28,12 @@ function getInstanceTitle(path: string, id: string): string { switch (path) { case InstancePaths.settings: return `${id}: Settings`; + case InstancePaths.bank_new: + return `${id}: Account`; + case InstancePaths.bank_list: + return `${id}: Account`; + case InstancePaths.bank_update: + return `${id}: Account`; case InstancePaths.order_list: return `${id}: Orders`; case InstancePaths.order_new: -- cgit v1.2.3