From f14a5666f5c414f2b3579f5630fb644f794ecc76 Mon Sep 17 00:00:00 2001 From: woogie0303 Date: Sat, 17 Aug 2024 13:48:02 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20=EB=AA=A8=EB=8B=AC=20=EC=88=98=EC=A0=95?= =?UTF-8?q?=20(#ATR-590)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/entities/modal/ui/ModalController.tsx | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/apps/service/src/entities/modal/ui/ModalController.tsx b/apps/service/src/entities/modal/ui/ModalController.tsx index 95bf9257..f41c7ea5 100644 --- a/apps/service/src/entities/modal/ui/ModalController.tsx +++ b/apps/service/src/entities/modal/ui/ModalController.tsx @@ -1,12 +1,6 @@ 'use client' -import { - forwardRef, - useCallback, - useEffect, - useImperativeHandle, - useState, -} from 'react' +import { forwardRef, useCallback, useImperativeHandle, useState } from 'react' import { CreateModalElement } from '../model' interface ModalPropsType { @@ -18,7 +12,7 @@ export default forwardRef(function ModalController( { modalElement: ModalElement, exitFromModalArr }: ModalPropsType, ref, ) { - const [isOpen, setIsOpen] = useState(false) + const [isOpen, setIsOpen] = useState(true) const handleModalClose = useCallback(() => { setIsOpen(false) // 메모리에서 완전히 모달을 삭제 하기 위함이고 아래 코드를 추가 안하면 모달 animation이 바로 적용이 안된다. @@ -35,9 +29,5 @@ export default forwardRef(function ModalController( [handleModalClose], ) - useEffect(() => { - setIsOpen(true) - }, []) - return })