Skip to content

Commit b5b4a34

Browse files
committed
chore: remove all comments from modified files
1 parent 2cd5472 commit b5b4a34

3 files changed

Lines changed: 16 additions & 97 deletions

File tree

‎apps/codebility/app/home/kanban/[projectId]/[id]/_components/tasks/TaskViewModal.tsx‎

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ import DifficultyPointsTooltip, {
5454
import TaskCommentsSection from "./_components/TaskComments";
5555
import KanbanRichTextDisplay from "../kanban_modals/KanbanRichTextDisplay";
5656

57-
// Fetch available members function - unchanged from original
57+
5858
const fetchAvailableMembers = async (
5959
boardId: string,
6060
): Promise<CodevMember[]> => {
@@ -357,9 +357,16 @@ const TaskViewModal = ({
357357
user?.role_id === 10;
358358
const canMarkAsDone = user?.role_id === 1 || user?.role_id === 5;
359359

360+
const searchParams = useSearchParams();
360361
const [showComments, setShowComments] = useState(false);
361362
const [commentCount, setCommentCount] = useState(0);
362363

364+
useEffect(() => {
365+
if (searchParams.get("commentId")) {
366+
setShowComments(true);
367+
}
368+
}, [searchParams]);
369+
363370
useEffect(() => {
364371
const fetchCommentCount = async () => {
365372
if (!task?.id || !supabase) return;

0 commit comments

Comments
 (0)