Skip to content

Commit cd2ede6

Browse files
committed
hotfix: 피드백메일 버튼 모바일 감지 추가
1 parent 39fa8c2 commit cd2ede6

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

src/pages/Setting/FeedbackMail/FeedbackMail.tsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,14 @@ 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()
13+
console.log(isMobile)
1114

1215
const formRef = useRef<HTMLFormElement>(null)
1316

@@ -44,6 +47,7 @@ function FeedbackMail() {
4447
)
4548
}
4649
}
50+
4751
return (
4852
<>
4953
{isOpenToast && (
@@ -133,7 +137,9 @@ function FeedbackMail() {
133137
</div>
134138
<div
135139
className={`${
136-
window.innerHeight > 680 ? 'absolute bottom-10' : 'my-10 block'
140+
window.innerHeight > 675 || !isMobile
141+
? 'absolute bottom-10'
142+
: 'my-10 block'
137143
} w-full cursor-pointer px-6`}
138144
>
139145
<Button

0 commit comments

Comments
 (0)