Skip to content

Commit

Permalink
Replaced all the css into tailwind css on PasswordResetForm component (
Browse files Browse the repository at this point in the history
  • Loading branch information
subhajit20 authored Nov 30, 2023
1 parent 9db4d0d commit ce3892e
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 29 deletions.
16 changes: 5 additions & 11 deletions components/Forms/PasswordResetForm/PasswordResetForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import Input from 'components/Form/Input/Input';
import Alert from 'components/Alert/Alert';
import { validationErrorMessages } from 'common/constants/messages';
import { getServerErrorMessage } from 'common/utils/api-utils';
import styles from './PasswordResetForm.module.css';

const defaultValues = { email: '' };

Expand Down Expand Up @@ -54,8 +53,8 @@ function PasswordResetForm({ initialValues, onSuccess, passwordReset }) {
validationSchema={passwordResetSchema}
>
{({ isSubmitting }) => (
<Form className={styles.PasswordResetForm}>
<div className={styles.row}>
<Form className="w-full">
<div className="flex flex-wrap justify-center">
<Field
type="email"
name="email"
Expand All @@ -66,17 +65,12 @@ function PasswordResetForm({ initialValues, onSuccess, passwordReset }) {
/>
</div>

<div className={styles.row}>
<div className="flex flex-wrap justify-center">
{errorMessage && <Alert type="error">{errorMessage}</Alert>}
</div>

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

This file was deleted.

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

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

2 comments on commit ce3892e

@vercel
Copy link

@vercel vercel bot commented on ce3892e Nov 30, 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 ce3892e Nov 30, 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.