From b434677b9e5d821310d8fd01f315c2a824d29b81 Mon Sep 17 00:00:00 2001 From: hamo-o Date: Fri, 16 Aug 2024 12:03:54 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20open=20=ED=95=A8=EC=88=98=20=EB=84=A4?= =?UTF-8?q?=EC=9D=B4=EB=B0=8D=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/ui/src/hooks/useModalState.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/ui/src/hooks/useModalState.ts b/packages/ui/src/hooks/useModalState.ts index a6c21e71..9ba53198 100644 --- a/packages/ui/src/hooks/useModalState.ts +++ b/packages/ui/src/hooks/useModalState.ts @@ -1,10 +1,10 @@ import { useCallback, useState } from "react"; const useModalState = () => { - const [isOpen, setOpen] = useState(false); + const [isOpen, setIsOpen] = useState(false); - const openModal = useCallback(() => setOpen(() => true), []); - const closeModal = useCallback(() => setOpen(() => false), []); + const openModal = useCallback(() => setIsOpen(() => true), []); + const closeModal = useCallback(() => setIsOpen(() => false), []); return { isOpen,