Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replaced all the css into tailwind css on ChangePasswordForm component #1774

Merged
merged 2 commits into from
Nov 21, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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">
subhajit20 marked this conversation as resolved.
Show resolved Hide resolved
<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