diff options
author | Sebastian <sebasjm@gmail.com> | 2024-01-14 16:00:31 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2024-01-14 16:01:45 -0300 |
commit | b1c1da74b43abc3355a70dfc533ad5af8a5f47c9 (patch) | |
tree | 030ea07141fe0012856e7c58b54229e88d82ecff /packages/demobank-ui/src/components/Cashouts/views.tsx | |
parent | c004962331934886167df1168611c02bbb643927 (diff) | |
download | wallet-core-b1c1da74b43abc3355a70dfc533ad5af8a5f47c9.tar.xz |
fix some wording
Diffstat (limited to 'packages/demobank-ui/src/components/Cashouts/views.tsx')
-rw-r--r-- | packages/demobank-ui/src/components/Cashouts/views.tsx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/packages/demobank-ui/src/components/Cashouts/views.tsx b/packages/demobank-ui/src/components/Cashouts/views.tsx index 1f1f02e4e..c3fdec796 100644 --- a/packages/demobank-ui/src/components/Cashouts/views.tsx +++ b/packages/demobank-ui/src/components/Cashouts/views.tsx @@ -43,7 +43,7 @@ export function FailedView({ error }: State.Failed) { } export function ReadyView({ cashouts, onSelected }: State.Ready): VNode { - const { i18n } = useTranslationContext(); + const { i18n, dateLocale } = useTranslationContext(); const resp = useConversionInfo(); if (!resp) { return <Loading /> @@ -55,7 +55,7 @@ export function ReadyView({ cashouts, onSelected }: State.Ready): VNode { const txByDate = cashouts.reduce((prev, cur) => { const d = cur.creation_time.t_s === "never" ? "" - : format(cur.creation_time.t_s * 1000, "dd/MM/yyyy") + : format(cur.creation_time.t_s * 1000, "dd/MM/yyyy", { locale: dateLocale }) if (!prev[d]) { prev[d] = [] } @@ -90,9 +90,9 @@ export function ReadyView({ cashouts, onSelected }: State.Ready): VNode { </th> </tr> {txs.map(item => { - const creationTime = item.creation_time.t_s === "never" ? "" : format(item.creation_time.t_s * 1000, "HH:mm:ss") + const creationTime = item.creation_time.t_s === "never" ? "" : format(item.creation_time.t_s * 1000, "HH:mm:ss", { locale: dateLocale }) const confirmationTime = item.confirmation_time - ? item.confirmation_time.t_s === "never" ? i18n.str`never` : format(item.confirmation_time.t_s, "dd/MM/yyyy HH:mm:ss") + ? item.confirmation_time.t_s === "never" ? i18n.str`never` : format(item.confirmation_time.t_s, "dd/MM/yyyy HH:mm:ss", { locale: dateLocale }) : "-" return (<tr key={idx} class="border-b border-gray-200 hover:bg-gray-200 last:border-none"> |