Compare commits

..

1 Commits

Author SHA1 Message Date
Atte Elo c55b07430d Update 5 files
- /src/views/CommitteePage/ltmk.json
- /src/views/CommitteePage/mtmk.json
- /src/views/CommitteePage/vtmk.json
- /src/views/CommitteePage/ptmk.json
- /src/views/CommitteePage/sicc.json
2026-02-27 18:33:49 +00:00
6 changed files with 7 additions and 34 deletions
-27
View File
@@ -23,9 +23,6 @@ const FORM_URL = `${process.env.NEXT_PUBLIC_API_URL}/signupForm/`;
const SignUpPage: NextPage<InitialProps> = ({ initialForm }) => {
const router = useRouter();
const [honeypot, setHoneypot] = useState("");
const id = String(initialForm?.id ?? "");
const SUBMIT_ID = uuid(); // Submission key, generated on page refresh
const URL = `${FORM_URL}${id}/`;
@@ -47,13 +44,6 @@ const SignUpPage: NextPage<InitialProps> = ({ initialForm }) => {
}
const onSubmit = async ({ formData }: ISubmitEvent<string>) => {
if (honeypot !== "") {
console.log("bot cought in honeypot cought lacking");
toast.success("Sign-up submitted successfully 😎");
return;
}
const payload: Signup = {
submit_id: SUBMIT_ID, // This is for preventing duplicate requests; NOT RELATED TO THE SIGNUP ID IN DATABASE
signupForm_id: signupForm.id,
@@ -76,23 +66,6 @@ const SignUpPage: NextPage<InitialProps> = ({ initialForm }) => {
<link rel="canonical" href={`${process.env.NEXT_PUBLIC_SITE_URL}/signup/${signupForm.id}`} />
</Head>
<PageWrapper>
{/* 3. HONEYPOT INPUT FIELD */}
<div
style={{ position: "absolute", top: "-9999px", left: "-9999px", opacity: 0 }}
aria-hidden="true"
>
<label htmlFor="website_url">Do not fill this out if you are human</label>
<input
id="website_url"
type="text"
name="website_url"
value={honeypot}
onChange={(e) => setHoneypot(e.target.value)}
tabIndex={-1} // Removes it from the "tab" cycle so keyboard users don't hit it
autoComplete="off"
/>
</div>
<SignUpPageView
signUpForm={signupForm}
formData={{}}
+1 -1
View File
@@ -42,7 +42,7 @@
"name": "Aapo Palojärvi"
},
{
"name": "André Paloari"
"name": "André Palosaari"
},
{
"name": "Kaisa Lehtimäki"
+2 -2
View File
@@ -60,7 +60,7 @@
"name": "Sampo Haarala"
},
{
"name": "Venla Nikkinen"
"name": "Venla Nikkanen"
}
]
},
@@ -93,7 +93,7 @@
"name": "Elian Salmimaa"
},
{
"name": "Lotta Kähkönen"
"name": "Lotta Kähönen"
}
]
},
+1 -1
View File
@@ -48,7 +48,7 @@
"name": "Tuomas Rantamäki"
},
{
"name": "Vi Tram"
"name": "Vi Tam"
}
]
}
+2 -2
View File
@@ -1,7 +1,7 @@
{
"slug": "sicc",
"name_fi": "SIK International Comittee Counsil",
"name_en": "SIK International Comittee Counsil",
"name_fi": "SIK International Committee Council",
"name_en": "SIK International Committee Council",
"info": "*coming soon*",
"roles": [
{
+1 -1
View File
@@ -82,7 +82,7 @@
"name": "Julius Männistö"
},
{
"name": "Lotta Kähkönen"
"name": "Lotta Kähönen"
},
{
"name": "Veikko Räty"