From 2d4596039ef7eda8ae7aec4b5bb5439b7c436fa7 Mon Sep 17 00:00:00 2001 From: kcwww Date: Wed, 11 Dec 2024 15:07:44 +0900 Subject: [PATCH] chore: delete unused code --- .../_components/IntroButtonSection.tsx | 7 --- shared/components/modals/GuestModal.tsx | 61 ------------------- shared/components/providers/ModalProvider.tsx | 4 +- shared/constants/modal.ts | 1 - 4 files changed, 2 insertions(+), 71 deletions(-) delete mode 100644 shared/components/modals/GuestModal.tsx diff --git a/app/(landing)/_components/IntroButtonSection.tsx b/app/(landing)/_components/IntroButtonSection.tsx index 7c46130..0317134 100644 --- a/app/(landing)/_components/IntroButtonSection.tsx +++ b/app/(landing)/_components/IntroButtonSection.tsx @@ -88,13 +88,6 @@ const IntroButtonSection = () => { 구글 로그인은 크롬 및 모바일 브라우저에서만 가능합니다.

)} - {/* */} diff --git a/shared/components/modals/GuestModal.tsx b/shared/components/modals/GuestModal.tsx deleted file mode 100644 index e4d6068..0000000 --- a/shared/components/modals/GuestModal.tsx +++ /dev/null @@ -1,61 +0,0 @@ -'use client'; - -import useModal from '@/shared/hooks/useModal'; - -import { - Dialog, - DialogContent, - DialogDescription, - DialogHeader, - DialogTitle, - DialogFooter, -} from '@/components/ui/dialog'; -import { Button } from '@/components/ui/button'; -import MODAL_TYPE from '@/shared/constants/modal'; - -const GuestModal = () => { - const { isOpen, onClose, type } = useModal(); - - if (!isOpen || type !== MODAL_TYPE.GUEST) { - return null; - } - - return ( - - e.preventDefault()} - > - - 게스트 로그인 -
-

- 게스트로 로그인시에 나만의 스노우볼 URL 주소을 따로 저장해두어야 - 해요. -

-

- 나만의 스노우볼 URL 주소를 기억하시지 못할때에는 기존 스노우볼을 - 찾기 어려울 수 있어요. -

-
- - 게스트 유저는 시즌이 지나면 데이터가 초기화 될 수 있습니다. -
- 언제든 로그인을 통해 기존 데이터를 유지할 수 있습니다. -
-
- - - - - -
-
- ); -}; - -export default GuestModal; diff --git a/shared/components/providers/ModalProvider.tsx b/shared/components/providers/ModalProvider.tsx index f8dd97c..1c26905 100644 --- a/shared/components/providers/ModalProvider.tsx +++ b/shared/components/providers/ModalProvider.tsx @@ -2,7 +2,7 @@ import { useEffect, useState } from 'react'; import IntroduceModal from '@/shared/components/modals/IntroduceModal'; -import GuestModal from '@/shared/components/modals/GuestModal'; + import MessageModal from '@/shared/components/modals/MessageModal'; import FormModal from '@/shared/components/modals/FormModal'; import MessageListModal from '@/shared/components/modals/MessageListModal'; @@ -23,7 +23,7 @@ const ModalProvider = () => { return ( <> - + diff --git a/shared/constants/modal.ts b/shared/constants/modal.ts index a5d445b..408e008 100644 --- a/shared/constants/modal.ts +++ b/shared/constants/modal.ts @@ -50,7 +50,6 @@ export const MSG_COLOR = [ ] as const; const MODAL_TYPE = { - GUEST: 'Guest', INTRODUCE: 'Intro', MESSAGE: 'Message', FORM: 'Form',