From 4c688b1d25dab2c1d2fa8d2116060cbf075cd3ff Mon Sep 17 00:00:00 2001 From: Akshita Goyal <36129505+gakshita@users.noreply.github.com> Date: Fri, 11 Apr 2025 14:00:54 +0530 Subject: [PATCH] [WEB-3529] fix: fixed the comment create box position in common comments component (#6915) --- web/core/components/comments/comments.tsx | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/web/core/components/comments/comments.tsx b/web/core/components/comments/comments.tsx index 0614bb1652..214b1375ea 100644 --- a/web/core/components/comments/comments.tsx +++ b/web/core/components/comments/comments.tsx @@ -22,15 +22,7 @@ type TCommentsWrapper = { }; export const CommentsWrapper: FC = observer((props) => { - const { - entityId, - activityOperations, - comments, - getCommentById, - isEditingAllowed = true, - projectId, - sortOrder, - } = props; + const { entityId, activityOperations, comments, getCommentById, isEditingAllowed = true, projectId } = props; // router const { workspaceSlug: routerWorkspaceSlug } = useParams(); const workspaceSlug = routerWorkspaceSlug?.toString(); @@ -55,7 +47,7 @@ export const CommentsWrapper: FC = observer((props) => { return (
- {sortOrder === E_SORT_ORDER.DESC && renderCommentCreate} + {renderCommentCreate}
{comments?.map((data, index) => { let comment; @@ -79,7 +71,6 @@ export const CommentsWrapper: FC = observer((props) => { ); })}
- {sortOrder === E_SORT_ORDER.ASC && renderCommentCreate}
); });