From cd2ede6de8cb5b0ca36568c68260d3e79eaf1fec Mon Sep 17 00:00:00 2001 From: Seongtaek Hwang Date: Mon, 6 Mar 2023 20:23:21 +0900 Subject: [PATCH 1/2] =?UTF-8?q?hotfix:=20=ED=94=BC=EB=93=9C=EB=B0=B1?= =?UTF-8?q?=EB=A9=94=EC=9D=BC=20=EB=B2=84=ED=8A=BC=20=EB=AA=A8=EB=B0=94?= =?UTF-8?q?=EC=9D=BC=20=EA=B0=90=EC=A7=80=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/Setting/FeedbackMail/FeedbackMail.tsx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/pages/Setting/FeedbackMail/FeedbackMail.tsx b/src/pages/Setting/FeedbackMail/FeedbackMail.tsx index ab2e6c5..4f3cbff 100644 --- a/src/pages/Setting/FeedbackMail/FeedbackMail.tsx +++ b/src/pages/Setting/FeedbackMail/FeedbackMail.tsx @@ -3,11 +3,14 @@ import Button from '@components/Button' import React, { useRef, useState } from 'react' import emailjs from '@emailjs/browser' import Toast from '@components/Toast' +import { useCheckMobile } from '@hooks/useCheckMobile' function FeedbackMail() { const [isOpenToast, setIsOpenToast] = useState(false) const [subject, setSubject] = useState('') const [body, setBody] = useState('') + const { isMobile } = useCheckMobile() + console.log(isMobile) const formRef = useRef(null) @@ -44,6 +47,7 @@ function FeedbackMail() { ) } } + return ( <> {isOpenToast && ( @@ -133,7 +137,9 @@ function FeedbackMail() {
680 ? 'absolute bottom-10' : 'my-10 block' + window.innerHeight > 675 || !isMobile + ? 'absolute bottom-10' + : 'my-10 block' } w-full cursor-pointer px-6`} >