From 7f38384f12ac203b9736b282e66aa931c9955fb7 Mon Sep 17 00:00:00 2001 From: Sinji Date: Wed, 5 Mar 2025 21:11:42 +0900 Subject: [PATCH 1/3] =?UTF-8?q?remove:=20mobile=20page=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/app/mobile/page.tsx | 34 ---------------------------------- 1 file changed, 34 deletions(-) delete mode 100644 src/app/mobile/page.tsx diff --git a/src/app/mobile/page.tsx b/src/app/mobile/page.tsx deleted file mode 100644 index 6856aed..0000000 --- a/src/app/mobile/page.tsx +++ /dev/null @@ -1,34 +0,0 @@ -'use client'; - -import MobileLayout from '@/components/mobile/layout'; -import Dropdown from '@/components/mobile/Dropdown'; -import useDropdown from '@/hooks/useDropdown'; -import Spacing from '@/components/mobile/Spacing'; - -export default function Mobile() { - const dropdownActions = [ - { title: '전체', func: () => console.log('전체') }, - { title: '대여 신청', func: () => console.log('대여 신청') }, - { title: '반납 신청', func: () => console.log('반납 신청') }, - ]; - - const { showDropdown, hideDropdown, isDropdownVisible } = useDropdown(); - - return ( - - - - - - - ); -} From 95e92afde348f34b4bca24ef9e520d8e203a0d62 Mon Sep 17 00:00:00 2001 From: Sinji Date: Wed, 5 Mar 2025 22:42:33 +0900 Subject: [PATCH 2/3] =?UTF-8?q?feat:=20=EB=B2=84=ED=8A=BC=20=ED=81=B4?= =?UTF-8?q?=EB=A6=AD=20=EC=8B=9C=20=EC=8A=A4=EC=BC=80=EC=9D=BC=20=EA=B4=80?= =?UTF-8?q?=EB=A0=A8=20=ED=95=B8=EB=93=A4=EB=9F=AC=20=EC=83=9D=EC=84=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/mobile/Alert/index.tsx | 10 ++++++++-- src/utils/handleTouch.ts | 9 +++++++++ 2 files changed, 17 insertions(+), 2 deletions(-) create mode 100644 src/utils/handleTouch.ts diff --git a/src/components/mobile/Alert/index.tsx b/src/components/mobile/Alert/index.tsx index dac4f95..f157930 100644 --- a/src/components/mobile/Alert/index.tsx +++ b/src/components/mobile/Alert/index.tsx @@ -1,3 +1,5 @@ +import { handleTouchStart, handleTouchEnd } from '@/utils/handleTouch'; + interface AlertProps { content: string; // alert창 문구 ctaButtonText: string; // 오른쪽 버튼에 들어갈 문구 @@ -20,7 +22,7 @@ export default function Alert({ : 'bg-warning text-white-primary'; // 빨간 버튼 (신청 취소) const defalutButtonClass = - 'text-body-1-normal_semi w-[108px] rounded-[10px] py-[9px] font-medium outline-none'; + 'text-body-1-normal_semi w-[108px] rounded-[10px] py-[9px] font-medium outline-none '; return (
@@ -42,13 +44,17 @@ export default function Alert({