aboutsummaryrefslogtreecommitdiff
path: root/packages/demobank-ui/src/pages/admin/AccountForm.tsx
diff options
context:
space:
mode:
authorSebastian <sebasjm@gmail.com>2024-01-14 16:00:31 -0300
committerSebastian <sebasjm@gmail.com>2024-01-14 16:01:45 -0300
commitb1c1da74b43abc3355a70dfc533ad5af8a5f47c9 (patch)
tree030ea07141fe0012856e7c58b54229e88d82ecff /packages/demobank-ui/src/pages/admin/AccountForm.tsx
parentc004962331934886167df1168611c02bbb643927 (diff)
downloadwallet-core-b1c1da74b43abc3355a70dfc533ad5af8a5f47c9.tar.xz
fix some wording
Diffstat (limited to 'packages/demobank-ui/src/pages/admin/AccountForm.tsx')
-rw-r--r--packages/demobank-ui/src/pages/admin/AccountForm.tsx19
1 files changed, 9 insertions, 10 deletions
diff --git a/packages/demobank-ui/src/pages/admin/AccountForm.tsx b/packages/demobank-ui/src/pages/admin/AccountForm.tsx
index 827b2a0f0..e08fee8bc 100644
--- a/packages/demobank-ui/src/pages/admin/AccountForm.tsx
+++ b/packages/demobank-ui/src/pages/admin/AccountForm.tsx
@@ -110,7 +110,7 @@ export function AccountForm<PurposeType extends keyof ChangeByPurposeType>({
? undefined :
!editableCashout ? undefined :
!cashoutParsed
- ? i18n.str`does not follow the pattern` :
+ ? i18n.str`it doesnt have the pattern of an IBAN number` :
!cashoutParsed.isKnown || cashoutParsed.targetType !== "iban"
? i18n.str`only "IBAN" target are supported` :
!IBAN_REGEX.test(cashoutParsed.iban)
@@ -120,7 +120,7 @@ export function AccountForm<PurposeType extends keyof ChangeByPurposeType>({
? undefined :
!editableAccount ? undefined :
!internalParsed
- ? i18n.str`does not follow the pattern` :
+ ? i18n.str`it doesnt have the pattern of an IBAN number` :
!internalParsed.isKnown || internalParsed.targetType !== "iban"
? i18n.str`only "IBAN" target are supported` :
!IBAN_REGEX.test(internalParsed.iban)
@@ -129,7 +129,7 @@ export function AccountForm<PurposeType extends keyof ChangeByPurposeType>({
email: !newForm.email
? undefined :
!EMAIL_REGEX.test(newForm.email)
- ? i18n.str`it should be an email` :
+ ? i18n.str`it doesnt have the pattern of an email` :
undefined,
phone: !newForm.phone
? undefined :
@@ -400,7 +400,9 @@ export function AccountForm<PurposeType extends keyof ChangeByPurposeType>({
message={errors?.debit_threshold ? String(errors?.debit_threshold) : undefined}
isDirty={form.debit_threshold !== undefined}
/>
- <p class="mt-2 text-sm text-gray-500" >how much is user able to transfer </p>
+ <p class="mt-2 text-sm text-gray-500" >
+ <i18n.Translate>how much is user able to transfer after zero balance</i18n.Translate>
+ </p>
</div>
{purpose !== "create" || !userIsAdmin ? undefined :
@@ -437,7 +439,7 @@ export function AccountForm<PurposeType extends keyof ChangeByPurposeType>({
class="block text-sm font-medium leading-6 text-gray-900"
for="channel"
>
- {i18n.str`Confirm the operation using`}
+ {i18n.str`Enable second factor authentication`}
</label>
<div class="mt-2 max-w-xl text-sm text-gray-500">
<div class="px-4 mt-4 grid grid-cols-1 gap-y-6">
@@ -457,7 +459,7 @@ export function AccountForm<PurposeType extends keyof ChangeByPurposeType>({
<span class="flex flex-1">
<span class="flex flex-col">
<span id="project-type-0-label" class="block text-sm font-medium text-gray-900 ">
- <i18n.Translate>Email</i18n.Translate>
+ <i18n.Translate>Using email</i18n.Translate>
</span>
{purpose !== "show" && !hasEmail && i18n.str`add a email in your profile to enable this option`}
</span>
@@ -484,7 +486,7 @@ export function AccountForm<PurposeType extends keyof ChangeByPurposeType>({
<span class="flex flex-1">
<span class="flex flex-col">
<span id="project-type-1-label" class="block text-sm font-medium text-gray-900">
- <i18n.Translate>SMS</i18n.Translate>
+ <i18n.Translate>Using SMS</i18n.Translate>
</span>
{purpose !== "show" && !hasPhone && i18n.str`add a phone number in your profile to enable this option`}
</span>
@@ -494,9 +496,6 @@ export function AccountForm<PurposeType extends keyof ChangeByPurposeType>({
</svg>
</label>
}
- <pre>
- {JSON.stringify(form, undefined, 2)}
- </pre>
</div>
</div>
</div>