Skip to content

Commit

Permalink
Merge pull request #266 from ItRecode/hotfix
Browse files Browse the repository at this point in the history
hotfix: 피드백메일 버튼 모바일 감지 추가
  • Loading branch information
Seongtaek-H authored Mar 6, 2023
2 parents 9990dd2 + 8509e2d commit 8ec8497
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/pages/Setting/FeedbackMail/FeedbackMail.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,13 @@ 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()

const formRef = useRef<HTMLFormElement>(null)

Expand Down Expand Up @@ -50,6 +52,7 @@ function FeedbackMail() {
)
}
}

return (
<>
{isOpenToast && (
Expand Down Expand Up @@ -139,7 +142,9 @@ function FeedbackMail() {
</div>
<div
className={`${
window.innerHeight > 680 ? 'absolute bottom-10' : 'my-10 block'
window.innerHeight > 675 || !isMobile
? 'absolute bottom-10'
: 'my-10 block'
} w-full cursor-pointer px-6`}
>
<Button
Expand Down

0 comments on commit 8ec8497

Please sign in to comment.