Skip to content

Commit 33f90b2

Browse files
committed
[FE-254] fix: 피드백메일 페이지 인풋 글자수 초과 버그 수정, 알럿 줄바꿈 수정, 보내기 버튼 조정
1 parent aa8e9c9 commit 33f90b2

1 file changed

Lines changed: 19 additions & 7 deletions

File tree

src/pages/Setting/FeedbackMail/FeedbackMail.tsx

Lines changed: 19 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)