eslint xD
This commit is contained in:
@@ -47,5 +47,6 @@ module.exports = {
|
|||||||
"jsx-a11y/no-noninteractive-element-interactions": "off",
|
"jsx-a11y/no-noninteractive-element-interactions": "off",
|
||||||
"jsx-a11y/no-static-element-interactions": "off",
|
"jsx-a11y/no-static-element-interactions": "off",
|
||||||
"@typescript-eslint/default-param-last": "warn",
|
"@typescript-eslint/default-param-last": "warn",
|
||||||
|
"object-curly-newline": "warn",
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -47,7 +47,6 @@ const SignUpPage: NextPage<InitialProps> = ({ initialForm }) => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const onSubmit = async ({ formData }: ISubmitEvent<string>) => {
|
const onSubmit = async ({ formData }: ISubmitEvent<string>) => {
|
||||||
|
|
||||||
if (honeypot !== "") {
|
if (honeypot !== "") {
|
||||||
console.log("bot cought in honeypot cought lacking");
|
console.log("bot cought in honeypot cought lacking");
|
||||||
toast.success("Sign-up submitted successfully 😎");
|
toast.success("Sign-up submitted successfully 😎");
|
||||||
@@ -78,7 +77,11 @@ const SignUpPage: NextPage<InitialProps> = ({ initialForm }) => {
|
|||||||
<PageWrapper>
|
<PageWrapper>
|
||||||
{/* 3. HONEYPOT INPUT FIELD */}
|
{/* 3. HONEYPOT INPUT FIELD */}
|
||||||
<div
|
<div
|
||||||
style={{ position: "absolute", top: "-9999px", left: "-9999px", opacity: 0 }}
|
style={
|
||||||
|
{
|
||||||
|
position: "absolute", top: "-9999px", left: "-9999px", opacity: 0,
|
||||||
|
}
|
||||||
|
}
|
||||||
aria-hidden="true"
|
aria-hidden="true"
|
||||||
>
|
>
|
||||||
<label htmlFor="website_url">Do not fill this out if you are human</label>
|
<label htmlFor="website_url">Do not fill this out if you are human</label>
|
||||||
|
|||||||
Reference in New Issue
Block a user