aboutsummaryrefslogtreecommitdiff
path: root/vnext
diff options
context:
space:
mode:
Diffstat (limited to 'vnext')
-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'