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,