From ae791fb10e07c6f9f1304c569533547ee291a2fc Mon Sep 17 00:00:00 2001 From: Jeon Eonseok Date: Sat, 17 Aug 2024 15:11:01 +0900 Subject: [PATCH 1/2] =?UTF-8?q?fix:=20=EC=A7=80=EC=9B=90=EC=84=9C=20?= =?UTF-8?q?=EB=8B=A4=EC=8B=9C=EB=B3=B4=EA=B8=B0=20=EB=88=84=EB=A5=BC=20?= =?UTF-8?q?=EC=8B=9C=20alert=20=EB=9C=A8=EB=8A=94=20=EA=B1=B0=20=EC=A0=9C?= =?UTF-8?q?=EA=B1=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/MyPage/index.tsx | 23 ++++++----------------- 1 file changed, 6 insertions(+), 17 deletions(-) diff --git a/src/views/MyPage/index.tsx b/src/views/MyPage/index.tsx index 0562bc5c..31ad9ca0 100644 --- a/src/views/MyPage/index.tsx +++ b/src/views/MyPage/index.tsx @@ -35,26 +35,15 @@ const MyInfoItem = ({ label, value }: { label: string; value?: string | number | const StatusButton = ({ label, to, trackingEvent }: { label: string; to: string; trackingEvent: string }) => { const deviceType = useDevice(); - const handlePreventMobile = (e: MouseEvent) => { - track(trackingEvent); - if (label === '지원상태') return; - - const isMobile = /Mobi/i.test(window.navigator.userAgent); - if (isMobile) { - alert('PC로 이용해주세요.'); - e.preventDefault(); - return; - } - if (deviceType !== 'DESK') { - alert('전체화면 이용을 권장드려요.'); - return; - } - }; - return (
  • {label} -
  • From d5f55b6a90219b21aa3636b6fbd53d862c3d0343 Mon Sep 17 00:00:00 2001 From: Jeon Eonseok Date: Sat, 17 Aug 2024 15:17:11 +0900 Subject: [PATCH 2/2] =?UTF-8?q?chore:=20=EC=95=88=20=EC=93=B0=EB=8A=94=20?= =?UTF-8?q?=EC=BD=94=EB=93=9C=20=EC=A0=9C=EA=B1=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/MyPage/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/MyPage/index.tsx b/src/views/MyPage/index.tsx index 31ad9ca0..23590390 100644 --- a/src/views/MyPage/index.tsx +++ b/src/views/MyPage/index.tsx @@ -1,5 +1,5 @@ import { track } from '@amplitude/analytics-browser'; -import { MouseEvent, useContext } from 'react'; +import { useContext } from 'react'; import Button from '@components/Button'; import Callout from '@components/Callout';