Skip to content

Commit 80789dc

Browse files
authored
VB-458: rename fields and placeholder text (#525)
1 parent 0d9a3f9 commit 80789dc

File tree

3 files changed

+24
-24
lines changed

3 files changed

+24
-24
lines changed

packages/frontend/components/auth/sign-up/component.tsx

+12-12
Original file line numberDiff line numberDiff line change
@@ -80,18 +80,6 @@ export const SignUpForm = () => {
8080
error={errors.lastName?.message}
8181
/>
8282
</div>
83-
<div css={inputWrapper}>
84-
<Input
85-
{...register('phone')}
86-
label={t('auth:sign-up.phone')}
87-
placeholder={t('auth:sign-up.phonePlaceholder')}
88-
variant="primary"
89-
type="text"
90-
name="phone"
91-
disabled={isLoading}
92-
error={errors.phone?.message}
93-
/>
94-
</div>
9583
<div css={inputWrapper}>
9684
<Input
9785
{...register('email')}
@@ -104,6 +92,18 @@ export const SignUpForm = () => {
10492
error={errors.email?.message}
10593
/>
10694
</div>
95+
<div css={inputWrapper}>
96+
<Input
97+
{...register('phone')}
98+
label={t('auth:sign-up.phone')}
99+
placeholder={t('auth:sign-up.phonePlaceholder')}
100+
variant="primary"
101+
type="text"
102+
name="phone"
103+
disabled={isLoading}
104+
error={errors.phone?.message}
105+
/>
106+
</div>
107107
<div css={inputWrapper}>
108108
<PasswordInput
109109
{...register('password')}

packages/frontend/public/locales/en/auth.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -63,16 +63,16 @@
6363
"firstNamePlaceholder": "Enter your first name",
6464
"lastName": "Last Name",
6565
"lastNamePlaceholder": "Enter your last name",
66-
"email": "E-mail",
66+
"email": "Email",
6767
"emailPlaceholder": "Enter your email",
6868
"password": "Password",
6969
"passwordPlaceholder": "Enter password",
7070
"passwordRepeat": "Repeat password",
71-
"passwordRepeatPlaceholder": "Repeat password",
71+
"passwordRepeatPlaceholder": "Enter password",
7272
"phone": "Phone number",
73-
"phonePlaceholder": "Enter phone number",
73+
"phonePlaceholder": "+380",
7474
"accountExist": "I have an account",
75-
"signUpBtn": "Create Account",
75+
"signUpBtn": "Create",
7676
"signIn": "Sign In"
7777
},
7878
"reset-password": {

packages/frontend/public/locales/ua/auth.json

+8-8
Original file line numberDiff line numberDiff line change
@@ -64,19 +64,19 @@
6464
"sign-up": {
6565
"createAccount": "Створити акаунт",
6666
"firstName": "Ім'я",
67-
"firstNamePlaceholder": "Введіть ім'я",
67+
"firstNamePlaceholder": "Введіть своє ім'я",
6868
"lastName": "Прізвище",
69-
"lastNamePlaceholder": "Введіть прізвище",
70-
"email": "E-mail",
71-
"emailPlaceholder": "Введіть вашу пошту",
69+
"lastNamePlaceholder": "Введіть своє прізвище",
70+
"email": "Електронна пошта",
71+
"emailPlaceholder": "Введіть свою електронну пошту",
7272
"password": "Пароль",
7373
"passwordPlaceholder": "Введіть пароль",
74-
"passwordRepeat": "Повторний пароль",
75-
"passwordRepeatPlaceholder": "Повторіть пароль",
74+
"passwordRepeat": "Повторіть пароль",
75+
"passwordRepeatPlaceholder": "Введіть пароль",
7676
"phone": "Номер телефону",
77-
"phonePlaceholder": "Введіть номер телефону",
77+
"phonePlaceholder": "+380",
7878
"accountExist": "В мене вже є акаунт",
79-
"signUpBtn": "Зареєструватись",
79+
"signUpBtn": "Створити",
8080
"signIn": "Увійти"
8181
},
8282
"forgot-password": {

0 commit comments

Comments
 (0)