aboutsummaryrefslogtreecommitdiff
path: root/vnext/src/ui/Comment.js
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2022-11-04 22:08:07 +0300
committerGravatar Vitaly Takmazov2023-01-13 10:37:58 +0300
commit33f6506425b6d81dd9c6dd5e159e52ab9f2d4df1 (patch)
tree462a43d9805ff367486d16dffd72794bc1916c3c /vnext/src/ui/Comment.js
parentf1a484cc662174717118bff1274aa473f5fa6ad9 (diff)
Fix JSDoc warnings
Diffstat (limited to 'vnext/src/ui/Comment.js')
-rw-r--r--vnext/src/ui/Comment.js8
1 files changed, 4 insertions, 4 deletions
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<HTMLDivElement?>} */
+ /** @type {import('react').MutableRefObject<HTMLDivElement?>} */
const embedRef = useRef(null);
- /** @type {React.MutableRefObject<HTMLDivElement?>} */
+ /** @type {import('react').MutableRefObject<HTMLDivElement?>} */
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'