diff --git a/src/common/component/Contact/ContextMenu.tsx b/src/common/component/Contact/ContextMenu.tsx index f4401258..628ad95e 100644 --- a/src/common/component/Contact/ContextMenu.tsx +++ b/src/common/component/Contact/ContextMenu.tsx @@ -1,8 +1,18 @@ +import { FC, ReactElement } from "react"; import Tippy from "@tippyjs/react"; import useContactOperation from "../../hook/useContactOperation"; import ContextMenu from "../ContextMenu"; -export default function ContactContextMenu({ enable = false, uid, cid, visible, hide, children }) { +interface Props { + enable?: boolean; + uid: number; + cid: number; + visible: boolean; + hide: () => void; + children: ReactElement; +} + +const ContactContextMenu: FC = ({ enable = false, uid, cid, visible, hide, children }) => { const { canCall, call, @@ -18,48 +28,48 @@ export default function ContactContextMenu({ enable = false, uid, cid, visible, cid }); return ( - <> - - } - > - {children} - - + + } + > + {children} + ); -} +}; + +export default ContactContextMenu;