Skip to content

Commit

Permalink
Properly fix the forgot password link
Browse files Browse the repository at this point in the history
  • Loading branch information
Babli04 committed May 28, 2024
1 parent 418763a commit f625e4b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/js/components/LoginForm.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ export function LoginForm({ onSubmit, isInvalid, error}) {
});
}, [isInvalid === true]);

useEffect(() => {
document.getElementById("forgotPw").disabled = true;
}, [])

return (
<CenteredContainer>
<Paper className="logpage" withBorder={true} shadow="md" p={40} mt={20} radius="md">
Expand All @@ -57,7 +61,7 @@ export function LoginForm({ onSubmit, isInvalid, error}) {
color="teal"
size="md"
/>
<Anchor component="button" size="sm" disabled={true}>
<Anchor component="button" size="sm" id="forgotPw">
Elfelejtetted a jelszavad?
</Anchor>
</Group>
Expand Down

0 comments on commit f625e4b

Please sign in to comment.