diff options
Diffstat (limited to 'packages/demobank-ui/src/pages/business/Home.tsx')
-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)} |