Skip to content

Commit 5487ad2

Browse files
committed
small fixes
1 parent 5b721dc commit 5487ad2

1 file changed

Lines changed: 8 additions & 7 deletions

File tree

src/components/screens/profile/ProfilePasswordForm.tsx

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,24 +18,25 @@ export const ProfilePasswordForm = () => {
1818
return (
1919
<Box borderColor="border.secondary" borderTopWidth={1} py={6}>
2020
<ProfileControlledInput
21-
label={t('form.labels.old_password')}
22-
name="oldPassword"
23-
placeholder={t('form.placeholders.old_password')}
2421
control={control}
2522
errors={errors}
23+
label={t('form.labels.old_password')}
24+
name="oldPassword"
2625
onSubmitEditing={focusNewPasswordInput}
26+
placeholder={t('form.placeholders.old_password')}
27+
type="password"
2728
/>
2829
<ProfileControlledInput
29-
label={t('form.labels.new_password')}
30-
name="password"
31-
placeholder={t('form.placeholders.new_password')}
3230
control={control}
3331
errors={{}}
3432
isInvalid={isPasswordError}
3533
isRequired
34+
label={t('form.labels.new_password')}
35+
name="password"
36+
onSubmitEditing={Keyboard.dismiss}
37+
placeholder={t('form.placeholders.new_password')}
3638
rules={{ validate: { validationFn } }}
3739
type="password"
38-
onSubmitEditing={Keyboard.dismiss}
3940
/>
4041
{passwordSuggestions}
4142
<Row maxW={800} justifyContent="flex-end">

0 commit comments

Comments
 (0)