Skip to content

Commit

Permalink
fix: open 함수 네이밍 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
hamo-o committed Aug 16, 2024
1 parent 262cc63 commit b434677
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/ui/src/hooks/useModalState.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { useCallback, useState } from "react";

const useModalState = () => {
const [isOpen, setOpen] = useState<boolean>(false);
const [isOpen, setIsOpen] = useState<boolean>(false);

const openModal = useCallback(() => setOpen(() => true), []);
const closeModal = useCallback(() => setOpen(() => false), []);
const openModal = useCallback(() => setIsOpen(() => true), []);
const closeModal = useCallback(() => setIsOpen(() => false), []);

return {
isOpen,
Expand Down

0 comments on commit b434677

Please sign in to comment.