Skip to content

Commit

Permalink
feat: login form
Browse files Browse the repository at this point in the history
  • Loading branch information
vcastellm committed Sep 29, 2024
1 parent fee222b commit b999399
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions ui/src/LoginPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,7 @@ const LoginPage = (props: LoginFormProps) => {
const { className } = props;
const [loading, setLoading] = useSafeSetState(false);

const handleSubmit = e => {
e.preventDefault();
const handleSubmit = (values: FormData) => {
setLoading(true);
login({ token }).catch(() => {
setLoading(false);
Expand All @@ -36,7 +35,8 @@ const LoginPage = (props: LoginFormProps) => {
};

return (
<Card className={LoginClasses.card}>
<Root>
<Card className={LoginClasses.card}>
<div className={LoginClasses.avatar}>
<Avatar className={LoginClasses.icon}>{avatarIcon}</Avatar>
</div>
Expand Down Expand Up @@ -74,8 +74,8 @@ const LoginPage = (props: LoginFormProps) => {
</Button>
</CardContent>
</StyledForm>
</Card>

</Card>
</Root>
);
};

Expand Down

0 comments on commit b999399

Please sign in to comment.