Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion src/components/ContactForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,6 @@ export default function ContactForm({
<HoneyPot
label="Email"
id="email"
autoComplete="email"
onChange={(e) => setHoneypot(e.target.value)}
/>
<TextField
Expand Down
11 changes: 1 addition & 10 deletions src/components/HoneyPot.tsx
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
export default function HoneyPot({
label,
id,
autoComplete,
type = "text",
onChange,
}: {
label: string;
id: string;
type?: "text" | "email" | "password";
autoComplete: "username" | "email" | "password";
onChange: React.ChangeEventHandler<HTMLInputElement>;
}) {
return (
Expand All @@ -23,14 +21,7 @@ export default function HoneyPot({
aria-hidden="true"
>
<label htmlFor={id}>{label}</label>
<input
type={type}
id={id}
name={id}
autoComplete={autoComplete}
tabIndex={-1}
onChange={onChange}
/>
<input type={type} id={id} name={id} tabIndex={-1} onChange={onChange} />
</div>
);
}
1 change: 0 additions & 1 deletion src/pages/auth/LoginPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@ export default function Login() {
<HoneyPot
label="Identifiant"
id="id"
autoComplete="username"
onChange={(e) => setHoneypot(e.target.value)}
/>
<TextField
Expand Down
1 change: 0 additions & 1 deletion src/pages/auth/RequestResetPasswordPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@ export default function RequestResetPassword() {
<HoneyPot
label="Email"
id="email"
autoComplete="email"
onChange={(e) => setHoneypot(e.target.value)}
/>
<TextField
Expand Down
Loading