Skip to content

Commit

Permalink
fix: signup password placeholder (#3907)
Browse files Browse the repository at this point in the history
fix: signup password placeholder
  • Loading branch information
mariojsnunes authored Oct 17, 2024
1 parent 83694df commit ed02fff
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/common/Form/PasswordField.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ export const PasswordField = ({ name, component, ...rest }) => {
<Field
{...rest}
name={name}
placeHolder={'testing'}
component={component}
type={isPasswordVisible ? 'text' : 'password'}
sx={{
Expand Down
2 changes: 2 additions & 0 deletions src/pages/SignUp/SignUp.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,7 @@ const SignUpPage = observer(() => {
<PasswordField
data-cy="password"
name="password"
placeholder="Password"
component={FieldInput}
validate={required}
/>
Expand All @@ -222,6 +223,7 @@ const SignUpPage = observer(() => {
<PasswordField
data-cy="confirm-password"
name="confirm-password"
placeholder="Confirm your Password"
component={FieldInput}
validate={required}
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ export const ChangeEmailForm = () => {
data-cy="password"
name="password"
required
placeholder="Password"
/>
</FormFieldWrapper>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ export const ChangePasswordForm = () => {
component={FieldInput}
data-cy="newPassword"
name="newPassword"
placeholder={fields.newPassword.placeholder}
required
/>
</FormFieldWrapper>
Expand All @@ -107,6 +108,7 @@ export const ChangePasswordForm = () => {
component={FieldInput}
data-cy="repeatNewPassword"
name="repeatNewPassword"
placeholder={fields.repeatNewPassword.placeholder}
required
/>
</FormFieldWrapper>
Expand Down
3 changes: 3 additions & 0 deletions src/pages/UserSettings/labels.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,11 @@ export const fields: ILabels = {
},
newPassword: {
title: 'New password',
placeholder: 'New password',
},
oldPassword: {
title: 'Old password',
placeholder: 'Old password',
},
openingHours: {
description: 'add opening day',
Expand All @@ -125,6 +127,7 @@ export const fields: ILabels = {
},
repeatNewPassword: {
title: 'Repeat new password',
placeholder: 'Repeat new password',
},
userName: {
title: 'Username',
Expand Down

0 comments on commit ed02fff

Please sign in to comment.