Skip to content

Commit

Permalink
Replaced all the css into tailwind css on LoginForm component (#1776)
Browse files Browse the repository at this point in the history
  • Loading branch information
subhajit20 authored Nov 29, 2023
1 parent 495f632 commit 9db4d0d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
7 changes: 3 additions & 4 deletions components/Forms/LoginForm/LoginForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import Button from 'components/Buttons/Button/Button';
import Form from 'components/Form/Form';
import Input from 'components/Form/Input/Input';
import Alert from 'components/Alert/Alert';
import styles from './LoginForm.module.css';

const defaultValues = {
email: '',
Expand Down Expand Up @@ -64,8 +63,8 @@ function LoginForm({ initialValues, login, onSuccess, buttonTheme }) {
return (
<Formik initialValues={initialValues} onSubmit={handleSubmit} validationSchema={loginSchema}>
{({ isSubmitting }) => (
<Form className={styles.LoginForm} data-testid={LOGIN_FORM}>
<div className={styles.row}>
<Form className="w-full" data-testid={LOGIN_FORM}>
<div className="flex flex-col items-center">
<Field
type="email"
name="email"
Expand All @@ -87,7 +86,7 @@ function LoginForm({ initialValues, login, onSuccess, buttonTheme }) {
{errorMessage && <Alert type="error">{errorMessage}</Alert>}

<Button
className={styles.topMargin}
className="mt-4"
type="submit"
theme={buttonTheme}
disabled={isSubmitting}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@

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

2 comments on commit 9db4d0d

@vercel
Copy link

@vercel vercel bot commented on 9db4d0d Nov 29, 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 9db4d0d Nov 29, 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.