@@ -13,7 +13,7 @@ function FeedbackMail() {
1313
1414 const sendEmail = ( e : React . FormEvent < HTMLFormElement > ) => {
1515 e . preventDefault ( )
16-
16+ if ( subject === '' || body === '' ) return
1717 const {
1818 REACT_APP_EMAILJS_SERVICE_ID ,
1919 REACT_APP_EMAILJS_TEMPLATE_ID ,
@@ -49,14 +49,16 @@ function FeedbackMail() {
4949 message = {
5050 < >
5151 < div className = "mt-6 font-semibold" >
52- < p >
52+ < p className = "whitespace-nowrap" >
5353 < span className = "text-primary-2" > ํผ๋๋ฐฑ ์ ์ก</ span > ์ด
5454 </ p >
55- < p > ์๋ฃ๋์์ด์</ p >
55+ < p className = "whitespace-nowrap" > ์๋ฃ๋์์ด์</ p >
5656 </ div >
5757 < div className = "mt-4 text-xs font-medium leading-normal text-grey-8" >
58- < p > ๋ ํธ๋ฆฌํ ์ด์ฉ์ ํ์ค ์ ์๋๋ก</ p >
59- < p > ๋น ๋ฅด๊ฒ ๊ฐ์ ํ ๊ฒ์!</ p >
58+ < p className = "whitespace-nowrap" >
59+ ๋ ํธ๋ฆฌํ ์ด์ฉ์ ํ์ค ์ ์๋๋ก
60+ </ p >
61+ < p className = "whitespace-nowrap" > ๋น ๋ฅด๊ฒ ๊ฐ์ ํ ๊ฒ์!</ p >
6062 </ div >
6163 </ >
6264 }
@@ -99,6 +101,7 @@ function FeedbackMail() {
99101 placeholder = "์ ๋ชฉ์ ์์ฑํด์ฃผ์ธ์."
100102 onChange = { ( e ) => setSubject ( e . target . value ) }
101103 value = { subject }
104+ maxLength = { 20 }
102105 />
103106 < span className = "absolute right-6 text-xs text-grey-4" >
104107 { subject . length } /20
@@ -124,8 +127,17 @@ function FeedbackMail() {
124127 </ div >
125128 </ section >
126129 </ div >
127- < div className = "absolute bottom-10 w-full cursor-pointer px-6" >
128- < Button property = "solid" type = "submit" >
130+ < div
131+ className = { `${
132+ window . innerHeight > 680 ? 'absolute' : 'my-10 block'
133+ } bottom-10 w-full cursor-pointer px-6`}
134+ >
135+ < Button
136+ property = "solid"
137+ type = "submit"
138+ disabled = { subject === '' || body === '' }
139+ active = { subject !== '' && body !== '' }
140+ >
129141 ํผ๋๋ฐฑ ๋ณด๋ด๊ธฐ
130142 </ Button >
131143 </ div >
0 commit comments