diff --git a/app/src/components/ui/collaboration/CommentThreads.tsx b/app/src/components/ui/collaboration/CommentThreads.tsx index 82cd6fb..7fb1d89 100644 --- a/app/src/components/ui/collaboration/CommentThreads.tsx +++ b/app/src/components/ui/collaboration/CommentThreads.tsx @@ -2,14 +2,14 @@ import React, { useState } from "react"; import { getAvatarColor } from "../../../modules/collaboration/functions/getAvatarColor"; const CommentThreads: React.FC = () => { - const [expand, setExpand] = useState(true); + const [expand, setExpand] = useState(false); const commentsedUsers = [ { userId: "1", userName: "user", }, { - userId: "1", + userId: "2", userName: "Admin", }, ]; diff --git a/app/src/modules/collaboration/comments/instances/commentInstance/commentInstance.tsx b/app/src/modules/collaboration/comments/instances/commentInstance/commentInstance.tsx index 07b6ae7..42655bb 100644 --- a/app/src/modules/collaboration/comments/instances/commentInstance/commentInstance.tsx +++ b/app/src/modules/collaboration/comments/instances/commentInstance/commentInstance.tsx @@ -2,6 +2,7 @@ import { Html, TransformControls } from '@react-three/drei'; import { useEffect, useRef, useState } from 'react' import { usePlayButtonStore } from '../../../../../store/usePlayButtonStore'; import { detectModifierKeys } from '../../../../../utils/shortcutkeys/detectModifierKeys'; +import CommentThreads from '../../../../../components/ui/collaboration/CommentThreads'; function CommentInstance({ comment }: { comment: CommentSchema }) { const { isPlaying } = usePlayButtonStore(); @@ -38,9 +39,10 @@ function CommentInstance({ comment }: { comment: CommentSchema }) { center position={comment.position} rotation={comment.rotation} + className='comments-main-wrapper' > - -
+ {/*
{ e.stopPropagation(); @@ -53,7 +55,7 @@ function CommentInstance({ comment }: { comment: CommentSchema }) {
hii
-
+
*/} {CommentRef.current && transformMode && (