Skip to content

Commit

Permalink
add login button (#699)
Browse files Browse the repository at this point in the history
  • Loading branch information
choden-dev authored Jul 29, 2024
1 parent 1c2b45a commit 3aef21b
Showing 1 changed file with 14 additions and 8 deletions.
22 changes: 14 additions & 8 deletions client/src/components/composite/LoginForm/LoginForm.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { FormEvent, useState } from "react"
import TextInput from "@/components/generic/TextInputComponent/TextInput"
import Button from "@/components/generic/FigmaButtons/FigmaButton"
import Link from "next/link"

export type LoginHandlerArgs = {
email: string
Expand Down Expand Up @@ -124,14 +125,19 @@ const LoginForm = ({
>
Forgot your password?
</h5>
<Button
data-testid="login-button"
type="submit"
disabled={isLoading || loginSuccessful}
variant="default-sm"
>
Login
</Button>
<span className="flex gap-2">
<Button
data-testid="login-button"
type="submit"
disabled={isLoading || loginSuccessful}
variant="default-sm"
>
Login
</Button>
<Button variant="inverted-default-sm">
<Link href="/register">Register</Link>
</Button>
</span>
<div className="mt-6 uppercase">
{messages.success && (
<h5 className="font-bold">{messages.success}</h5>
Expand Down

0 comments on commit 3aef21b

Please sign in to comment.