Skip to content

Commit

Permalink
Replaced all the css into tailwind css on ChangePasswordForm component (
Browse files Browse the repository at this point in the history
  • Loading branch information
subhajit20 authored Nov 21, 2023
1 parent b00ba2e commit 495f632
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 25 deletions.
12 changes: 3 additions & 9 deletions components/Forms/ChangePasswordForm/ChangePasswordForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import { validationErrorMessages } from 'common/constants/messages';
import { getServerErrorMessage } from 'common/utils/api-utils';
import { minimumPasswordLength } from 'common/constants/validations';
import { hasRequiredCharacters } from 'common/utils/validator-utils';
import styles from './ChangePasswordForm.module.css';

const defaultValues = {
newPassword1: '',
Expand Down Expand Up @@ -67,8 +66,8 @@ function ChangePasswordForm({ onSubmit, onSuccess, initialValues }) {
validationSchema={passwordResetSubmitSchema}
>
{({ isSubmitting }) => (
<Form className={styles.PasswordResetSubmitForm}>
<div className={styles.row}>
<Form className="w-full">
<div className="flex flex-col items-center">
<Field
type="password"
name="newPassword1"
Expand All @@ -93,12 +92,7 @@ function ChangePasswordForm({ onSubmit, onSuccess, initialValues }) {
</Alert>
)}

<Button
className={styles.topMargin}
type="submit"
theme="secondary"
disabled={isSubmitting}
>
<Button className="mt-4" type="submit" theme="secondary" disabled={isSubmitting}>
Submit
</Button>
</div>
Expand Down
13 changes: 0 additions & 13 deletions components/Forms/ChangePasswordForm/ChangePasswordForm.module.css

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@

exports[`ChangePasswordForm should render with required props 1`] = `
<form
className="PasswordResetSubmitForm"
className="w-full"
noValidate={true}
onReset={[Function]}
onSubmit={[Function]}
>
<div
className="row"
className="flex flex-col items-center"
>
<div
className="field"
Expand Down Expand Up @@ -67,7 +67,7 @@ exports[`ChangePasswordForm should render with required props 1`] = `
</div>
</div>
<button
className="Button topMargin secondary"
className="Button mt-4 secondary"
data-testid="BUTTON"
disabled={false}
onClick={[Function]}
Expand Down

2 comments on commit 495f632

@vercel
Copy link

@vercel vercel bot commented on 495f632 Nov 21, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on 495f632 Nov 21, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.