@@ -255,14 +255,13 @@ export default function SignUp() {
255
255
</ p >
256
256
< div className = "flex flex-col items-center justify-center w-full md:pb-2 max-h-24 max-w-md mx-auto pt-2" >
257
257
< 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" >
259
259
< u className = "font-normal text-md text-sky-500" >
260
260
Have an account? Log in
261
261
</ u >
262
262
</ button >
263
263
</ Link >
264
264
</ div >
265
- < form onSubmit = { ( e ) => { e . preventDefault ( ) ; } } >
266
265
< 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" >
267
266
< InputField
268
267
label = "Email"
@@ -289,13 +288,11 @@ export default function SignUp() {
289
288
< Button text = "Get Started" type = "submit" onButtonPressed = { emailCheck } size = "lg" />
290
289
</ div >
291
290
</ div >
292
- </ form >
293
291
</ div >
294
292
) ;
295
293
296
294
// Step 2 of the signup process (enter the email verification code)
297
295
const step2 = (
298
- < form onSubmit = { ( e ) => { e . preventDefault ( ) ; } } >
299
296
< 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" >
300
297
< p className = "text-l flex justify-center text-gray-400" >
301
298
{ 'We\'ve' } sent a verification email to{ ' ' }
@@ -344,12 +341,10 @@ export default function SignUp() {
344
341
</ p >
345
342
</ div >
346
343
</ div >
347
- </ form >
348
344
) ;
349
345
350
346
// Step 3 of the signup process (enter the rest of the impformation)
351
347
const step3 = (
352
- < form onSubmit = { ( e ) => { e . preventDefault ( ) ; } } >
353
348
< 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" >
354
349
< 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" >
355
350
Almost there!
@@ -481,12 +476,10 @@ export default function SignUp() {
481
476
/>
482
477
</ div >
483
478
</ div >
484
- </ form >
485
479
) ;
486
480
487
481
// Step 4 of the sign up process (download the emergency kit pdf)
488
482
const step4 = (
489
- < form onSubmit = { ( e ) => { e . preventDefault ( ) ; } } >
490
483
< 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" >
491
484
< 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" >
492
485
Save your Emergency Kit
@@ -536,7 +529,6 @@ export default function SignUp() {
536
529
</div> */ }
537
530
</ div >
538
531
</ div >
539
- </ form >
540
532
) ;
541
533
542
534
return (
@@ -565,7 +557,9 @@ export default function SignUp() {
565
557
/>
566
558
</ div >
567
559
</ 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 >
569
563
</ div >
570
564
</ div >
571
565
) ;
0 commit comments