File tree Expand file tree Collapse file tree
src/pages/Setting/FeedbackMail Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3,11 +3,13 @@ import Button from '@components/Button'
33import React , { useRef , useState } from 'react'
44import emailjs from '@emailjs/browser'
55import Toast from '@components/Toast'
6+ import { useCheckMobile } from '@hooks/useCheckMobile'
67
78function 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
You can’t perform that action at this time.
0 commit comments