File tree Expand file tree Collapse file tree 2 files changed +13
-2
lines changed Expand file tree Collapse file tree 2 files changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,12 @@ const ContactForm = () => {
2
2
return (
3
3
< div className = "w-full sm:w-1/2" >
4
4
< div className = "leading-loose" >
5
- < form className = "max-w-xl m-4 p-6 sm:p-10 bg-secondary-light dark:bg-secondary-dark rounded-xl shadow-xl text-left" >
5
+ < form
6
+ onSubmit = { ( e ) => {
7
+ e . preventDefault ( ) ;
8
+ } }
9
+ className = "max-w-xl m-4 p-6 sm:p-10 bg-secondary-light dark:bg-secondary-dark rounded-xl shadow-xl text-left"
10
+ >
6
11
< p className = "text-primary-dark dark:text-primary-light text-2xl font-semibold mb-8" >
7
12
Contact Form
8
13
</ p >
Original file line number Diff line number Diff line change @@ -22,7 +22,12 @@ const HireMeModal = ({ onClose, onRequest }) => {
22
22
</ button >
23
23
</ div >
24
24
< div className = "modal-body p-5 w-full h-full" >
25
- < form className = "max-w-xl m-4 text-left" >
25
+ < form
26
+ onSubmit = { ( e ) => {
27
+ e . preventDefault ( ) ;
28
+ } }
29
+ className = "max-w-xl m-4 text-left"
30
+ >
26
31
< div className = "" >
27
32
< input
28
33
className = "w-full px-5 py-2 border dark:border-secondary-dark rounded-lg text-md dark:font-medium bg-secondary-light dark:bg-ternary-dark text-primary-dark dark:text-ternary-light"
@@ -73,6 +78,7 @@ const HireMeModal = ({ onClose, onRequest }) => {
73
78
< div className = "mt-6 pb-4 sm:pb-1" >
74
79
< button
75
80
onClick = { onRequest }
81
+ type = "submit"
76
82
className = "px-4
77
83
sm:px-6
78
84
py-2
You can’t perform that action at this time.
0 commit comments