From 72ff9c096404e102e52c3d9de8036d93460dba60 Mon Sep 17 00:00:00 2001 From: GyDi <zzzgydi@gmail.com> Date: Wed, 23 Nov 2022 17:45:49 +0800 Subject: [PATCH] chore: rm dead code --- src/hooks/use-modal-handler.ts | 14 -------------- 1 file changed, 14 deletions(-) delete mode 100644 src/hooks/use-modal-handler.ts diff --git a/src/hooks/use-modal-handler.ts b/src/hooks/use-modal-handler.ts deleted file mode 100644 index dbcf889..0000000 --- a/src/hooks/use-modal-handler.ts +++ /dev/null @@ -1,14 +0,0 @@ -import { MutableRefObject, useRef } from "react"; - -interface Handler { - open: () => void; - close: () => void; -} - -export type ModalHandler = MutableRefObject<Handler>; - -const useModalHandler = (): ModalHandler => { - return useRef({ open: () => {}, close: () => {} }); -}; - -export default useModalHandler; -- GitLab