diff options
author | Sebastian <sebasjm@gmail.com> | 2023-10-01 12:50:43 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2023-10-01 12:50:43 -0300 |
commit | 372ddff91798cf9247eaf045f0d0ce33694fd880 (patch) | |
tree | 16af670c4bb95aec956210c7b5fc9777c385cf0c /packages/demobank-ui/src/pages/business | |
parent | 1708d49a2d5da1f325173a030695223e5a24e75c (diff) | |
download | wallet-core-372ddff91798cf9247eaf045f0d0ce33694fd880.tar.xz |
render amount and limit input
Diffstat (limited to 'packages/demobank-ui/src/pages/business')
-rw-r--r-- | packages/demobank-ui/src/pages/business/Home.tsx | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/packages/demobank-ui/src/pages/business/Home.tsx b/packages/demobank-ui/src/pages/business/Home.tsx index 2945cb65a..1a84effcd 100644 --- a/packages/demobank-ui/src/pages/business/Home.tsx +++ b/packages/demobank-ui/src/pages/business/Home.tsx @@ -45,7 +45,7 @@ import { undefinedIfEmpty, } from "../../utils.js"; import { handleNotOkResult } from "../HomePage.js"; -import { Amount } from "../PaytoWireTransferForm.js"; +import { InputAmount } from "../PaytoWireTransferForm.js"; import { ShowAccountDetails } from "../ShowAccountDetails.js"; import { UpdateAccountPassword } from "../UpdateAccountPassword.js"; @@ -342,7 +342,7 @@ function CreateCashout({ </label> <div style={{ display: "flex" }}> - <Amount + <InputAmount name="amount" currency={amount.currency} value={form.amount} @@ -372,7 +372,7 @@ function CreateCashout({ </fieldset> <fieldset> <label for="balance-now">{i18n.str`Balance now`}</label> - <Amount + <InputAmount name="banace-now" currency={balance.currency} value={Amounts.stringifyValue(balance)} @@ -382,7 +382,7 @@ function CreateCashout({ <label for="total-cost" style={{ fontWeight: "bold", color: "red" }} >{i18n.str`Total cost`}</label> - <Amount + <InputAmount name="total-cost" currency={balance.currency} value={Amounts.stringifyValue(calc.debit)} @@ -390,7 +390,7 @@ function CreateCashout({ </fieldset> <fieldset> <label for="balance-after">{i18n.str`Balance after`}</label> - <Amount + <InputAmount name="balance-after" currency={balance.currency} value={balanceAfter ? Amounts.stringifyValue(balanceAfter) : ""} @@ -400,7 +400,7 @@ function CreateCashout({ <Fragment> <fieldset> <label for="amount-conversiojn">{i18n.str`Amount after conversion`}</label> - <Amount + <InputAmount name="amount-conversion" currency={fiatCurrency} value={Amounts.stringifyValue(calc.beforeFee)} @@ -409,7 +409,7 @@ function CreateCashout({ <fieldset> <label form="cashout-fee">{i18n.str`Cashout fee`}</label> - <Amount + <InputAmount name="cashout-fee" currency={fiatCurrency} value={Amounts.stringifyValue(sellFee)} @@ -421,7 +421,7 @@ function CreateCashout({ <label for="total" style={{ fontWeight: "bold", color: "green" }} >{i18n.str`Total cashout transfer`}</label> - <Amount + <InputAmount name="total" currency={fiatCurrency} value={Amounts.stringifyValue(calc.credit)} |