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,14 @@ 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 ( )
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
You can’t perform that action at this time.
0 commit comments