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/components/Cashouts/views.tsx | |
parent | 1708d49a2d5da1f325173a030695223e5a24e75c (diff) |
render amount and limit input
Diffstat (limited to 'packages/demobank-ui/src/components/Cashouts/views.tsx')
-rw-r--r-- | packages/demobank-ui/src/components/Cashouts/views.tsx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/packages/demobank-ui/src/components/Cashouts/views.tsx b/packages/demobank-ui/src/components/Cashouts/views.tsx index 4b7649fb6..a32deb266 100644 --- a/packages/demobank-ui/src/components/Cashouts/views.tsx +++ b/packages/demobank-ui/src/components/Cashouts/views.tsx @@ -19,6 +19,7 @@ import { useTranslationContext } from "@gnu-taler/web-util/browser"; import { State } from "./index.js"; import { format } from "date-fns"; import { Amounts } from "@gnu-taler/taler-util"; +import { RenderAmount } from "../../pages/PaytoWireTransferForm.js"; export function LoadingUriView({ error }: State.LoadingUriError): VNode { const { i18n } = useTranslationContext(); @@ -62,8 +63,8 @@ export function ReadyView({ cashouts, onSelected }: State.Ready): VNode { ? format(item.confirmation_time, "dd/MM/yyyy HH:mm:ss") : "-"} </td> - <td>{Amounts.stringifyValue(item.amount_debit)}</td> - <td>{Amounts.stringifyValue(item.amount_credit)}</td> + <td><RenderAmount value={Amounts.parseOrThrow(item.amount_debit)} /></td> + <td><RenderAmount value={Amounts.parseOrThrow(item.amount_credit)} /></td> <td>{item.status}</td> <td> <a |