From 33f6506425b6d81dd9c6dd5e159e52ab9f2d4df1 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Fri, 4 Nov 2022 22:08:07 +0300 Subject: Fix JSDoc warnings --- vnext/src/ui/Comment.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'vnext/src') diff --git a/vnext/src/ui/Comment.js b/vnext/src/ui/Comment.js index 717d62e9..40ce0863 100644 --- a/vnext/src/ui/Comment.js +++ b/vnext/src/ui/Comment.js @@ -20,13 +20,13 @@ import { useVisitor } from './VisitorContext'; onStartEditing: Function, postComment: function({body:string, attach: string | File}) : void }} props props - * @returns React.ReactElement + * @returns import('react').ReactElement */ export default function Comment({ msg, draft, active, setActive, onStartEditing, postComment }) { const [visitor] = useVisitor(); - /** @type {React.MutableRefObject} */ + /** @type {import('react').MutableRefObject} */ const embedRef = useRef(null); - /** @type {React.MutableRefObject} */ + /** @type {import('react').MutableRefObject} */ const msgRef = useRef(null); const [author] = useState(msg.user); useEffect(() => { @@ -95,7 +95,7 @@ export default function Comment({ msg, draft, active, setActive, onStartEditing, ); } /** - * @type {React.CSSProperties} + * @type {import('react').CSSProperties} */ const linkStyle = { cursor: 'pointer' -- cgit v1.2.3