diff options
author | Sebastian <sebasjm@gmail.com> | 2023-12-19 12:12:31 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2023-12-19 12:12:52 -0300 |
commit | cb8fbb9ec78831f7fb9f5a4839cbe3362a3e2b51 (patch) | |
tree | 3657963f26d4445f1a29cb0ece724b4c180e9f0a /packages/merchant-backoffice-ui/src/components/form/InputPaytoForm.tsx | |
parent | 0decd47ff9b43e8c6f56d511b73e9d01875b0076 (diff) | |
download | wallet-core-cb8fbb9ec78831f7fb9f5a4839cbe3362a3e2b51.tar.xz |
fix martin feedback
Diffstat (limited to 'packages/merchant-backoffice-ui/src/components/form/InputPaytoForm.tsx')
-rw-r--r-- | packages/merchant-backoffice-ui/src/components/form/InputPaytoForm.tsx | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/packages/merchant-backoffice-ui/src/components/form/InputPaytoForm.tsx b/packages/merchant-backoffice-ui/src/components/form/InputPaytoForm.tsx index 0362310b9..32545c89a 100644 --- a/packages/merchant-backoffice-ui/src/components/form/InputPaytoForm.tsx +++ b/packages/merchant-backoffice-ui/src/components/form/InputPaytoForm.tsx @@ -276,6 +276,7 @@ export function InputPaytoForm<T>({ label={i18n.str`Account type`} tooltip={i18n.str`Method to use for wire transfer`} values={targets} + readonly={readonly} toStr={(v) => (v === noTargetValue ? i18n.str`Choose one...` : v)} /> @@ -284,11 +285,13 @@ export function InputPaytoForm<T>({ <Input<Entity> name="path1" label={i18n.str`Routing`} + readonly={readonly} tooltip={i18n.str`Routing number.`} /> <Input<Entity> name="path2" label={i18n.str`Account`} + readonly={readonly} tooltip={i18n.str`Account number.`} /> </Fragment> @@ -298,6 +301,7 @@ export function InputPaytoForm<T>({ <Input<Entity> name="path1" label={i18n.str`Code`} + readonly={readonly} tooltip={i18n.str`Business Identifier Code.`} /> </Fragment> @@ -308,6 +312,7 @@ export function InputPaytoForm<T>({ name="path1" label={i18n.str`IBAN`} tooltip={i18n.str`International Bank Account Number.`} + readonly={readonly} placeholder="DE1231231231" inputExtra={{ style: { textTransform: "uppercase" } }} /> @@ -317,6 +322,7 @@ export function InputPaytoForm<T>({ <Fragment> <Input<Entity> name="path1" + readonly={readonly} label={i18n.str`Account`} tooltip={i18n.str`Unified Payment Interface.`} /> @@ -326,6 +332,7 @@ export function InputPaytoForm<T>({ <Fragment> <Input<Entity> name="path1" + readonly={readonly} label={i18n.str`Address`} tooltip={i18n.str`Bitcoin protocol.`} /> @@ -335,6 +342,7 @@ export function InputPaytoForm<T>({ <Fragment> <Input<Entity> name="path1" + readonly={readonly} label={i18n.str`Address`} tooltip={i18n.str`Ethereum protocol.`} /> @@ -344,6 +352,7 @@ export function InputPaytoForm<T>({ <Fragment> <Input<Entity> name="path1" + readonly={readonly} label={i18n.str`Address`} tooltip={i18n.str`Interledger protocol.`} /> @@ -354,11 +363,13 @@ export function InputPaytoForm<T>({ <Fragment> <Input<Entity> name="path1" + readonly={readonly} label={i18n.str`Host`} tooltip={i18n.str`Bank host.`} /> <Input<Entity> name="path2" + readonly={readonly} label={i18n.str`Account`} tooltip={i18n.str`Bank account.`} /> @@ -372,6 +383,7 @@ export function InputPaytoForm<T>({ <Fragment> <Input name="params.receiver-name" + readonly={readonly} label={i18n.str`Owner's name`} tooltip={i18n.str`Legal name of the person holding the account.`} /> |