Skip to content

Commit 8ec8497

Browse files
authored
Merge pull request #266 from ItRecode/hotfix
hotfix: 피드백메일 버튼 모바일 감지 추가
2 parents 9990dd2 + 8509e2d commit 8ec8497

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

src/pages/Setting/FeedbackMail/FeedbackMail.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,13 @@ import Button from '@components/Button'
33
import React, { useRef, useState } from 'react'
44
import emailjs from '@emailjs/browser'
55
import Toast from '@components/Toast'
6+
import { useCheckMobile } from '@hooks/useCheckMobile'
67

78
function FeedbackMail() {
89
const [isOpenToast, setIsOpenToast] = useState(false)
910
const [subject, setSubject] = useState('')
1011
const [body, setBody] = useState('')
12+
const { isMobile } = useCheckMobile()
1113

1214
const formRef = useRef<HTMLFormElement>(null)
1315

@@ -50,6 +52,7 @@ function FeedbackMail() {
5052
)
5153
}
5254
}
55+
5356
return (
5457
<>
5558
{isOpenToast && (
@@ -139,7 +142,9 @@ function FeedbackMail() {
139142
</div>
140143
<div
141144
className={`${
142-
window.innerHeight > 680 ? 'absolute bottom-10' : 'my-10 block'
145+
window.innerHeight > 675 || !isMobile
146+
? 'absolute bottom-10'
147+
: 'my-10 block'
143148
} w-full cursor-pointer px-6`}
144149
>
145150
<Button

0 commit comments

Comments
 (0)