Skip to content

Commit 6405e9f

Browse files
committed
cleanup
1 parent 13e7883 commit 6405e9f

File tree

1 file changed

+4
-10
lines changed

1 file changed

+4
-10
lines changed

frontend/pages/signup.tsx

+4-10
Original file line numberDiff line numberDiff line change
@@ -255,14 +255,13 @@ export default function SignUp() {
255255
</p>
256256
<div className="flex flex-col items-center justify-center w-full md:pb-2 max-h-24 max-w-md mx-auto pt-2">
257257
<Link href="/login">
258-
<button className="w-max pb-3 hover:opacity-90 duration-200">
258+
<button type="button" className="w-max pb-3 hover:opacity-90 duration-200">
259259
<u className="font-normal text-md text-sky-500">
260260
Have an account? Log in
261261
</u>
262262
</button>
263263
</Link>
264264
</div>
265-
<form onSubmit={(e) => {e.preventDefault();}}>
266265
<div className="flex items-center justify-center w-5/6 md:w-full m-auto md:p-2 rounded-lg max-h-24 mt-4">
267266
<InputField
268267
label="Email"
@@ -289,13 +288,11 @@ export default function SignUp() {
289288
<Button text="Get Started" type="submit" onButtonPressed={emailCheck} size="lg" />
290289
</div>
291290
</div>
292-
</form>
293291
</div>
294292
);
295293

296294
// Step 2 of the signup process (enter the email verification code)
297295
const step2 = (
298-
<form onSubmit={(e) => {e.preventDefault();}}>
299296
<div className="bg-bunker w-max mx-auto h-7/12 pt-10 pb-4 px-8 rounded-xl drop-shadow-xl mb-64 md:mb-16">
300297
<p className="text-l flex justify-center text-gray-400">
301298
{'We\'ve'} sent a verification email to{' '}
@@ -344,12 +341,10 @@ export default function SignUp() {
344341
</p>
345342
</div>
346343
</div>
347-
</form>
348344
);
349345

350346
// Step 3 of the signup process (enter the rest of the impformation)
351347
const step3 = (
352-
<form onSubmit={(e) => {e.preventDefault();}}>
353348
<div className="bg-bunker w-max mx-auto h-7/12 py-10 px-8 rounded-xl drop-shadow-xl mb-36 md:mb-16">
354349
<p className="text-4xl font-bold flex justify-center mb-6 text-gray-400 mx-8 md:mx-16 text-transparent bg-clip-text bg-gradient-to-br from-sky-400 to-primary">
355350
Almost there!
@@ -481,12 +476,10 @@ export default function SignUp() {
481476
/>
482477
</div>
483478
</div>
484-
</form>
485479
);
486480

487481
// Step 4 of the sign up process (download the emergency kit pdf)
488482
const step4 = (
489-
<form onSubmit={(e) => {e.preventDefault();}}>
490483
<div className="bg-bunker flex flex-col items-center w-full max-w-xs md:max-w-lg mx-auto h-7/12 py-8 px-4 md:px-6 mx-1 mb-36 md:mb-16 rounded-xl drop-shadow-xl">
491484
<p className="text-4xl text-center font-semibold flex justify-center text-transparent bg-clip-text bg-gradient-to-br from-sky-400 to-primary">
492485
Save your Emergency Kit
@@ -536,7 +529,6 @@ export default function SignUp() {
536529
</div> */}
537530
</div>
538531
</div>
539-
</form>
540532
);
541533

542534
return (
@@ -565,7 +557,9 @@ export default function SignUp() {
565557
/>
566558
</div>
567559
</Link>
568-
{step == 1 ? step1 : step == 2 ? step2 : step == 3 ? step3 : step4}
560+
<form onSubmit={(e) => {e.preventDefault();}}>
561+
{step == 1 ? step1 : step == 2 ? step2 : step == 3 ? step3 : step4}
562+
</form>
569563
</div>
570564
</div>
571565
);

0 commit comments

Comments
 (0)