From 723c366fca35b8e2a6438fe51e16cfe05e1034e8 Mon Sep 17 00:00:00 2001 From: Mohamed amaan <121436543+modamaan@users.noreply.github.com> Date: Tue, 18 Feb 2025 12:05:14 +0530 Subject: [PATCH] Enhance Comment Section UI with Redesigned User Icon and Styling (#10458) --- .../Resource/ResourceCommentSection.tsx | 62 ++++++++++++------- 1 file changed, 40 insertions(+), 22 deletions(-) diff --git a/src/components/Resource/ResourceCommentSection.tsx b/src/components/Resource/ResourceCommentSection.tsx index 62f94d5d6fa..ddda59be9f1 100644 --- a/src/components/Resource/ResourceCommentSection.tsx +++ b/src/components/Resource/ResourceCommentSection.tsx @@ -7,7 +7,9 @@ import { toast } from "sonner"; import { cn } from "@/lib/utils"; import { Button } from "@/components/ui/button"; +import { Markdown } from "@/components/ui/markdown"; import { Textarea } from "@/components/ui/textarea"; +import { TooltipComponent } from "@/components/ui/tooltip"; import { Avatar } from "@/components/Common/Avatar"; import PaginationComponent from "@/components/Common/Pagination"; @@ -18,7 +20,7 @@ import { RESULTS_PER_PAGE_LIMIT } from "@/common/constants"; import routes from "@/Utils/request/api"; import mutate from "@/Utils/request/mutate"; import query from "@/Utils/request/query"; -import { formatName, relativeTime } from "@/Utils/utils"; +import { formatDateTime, formatName, relativeTime } from "@/Utils/utils"; import { CommentModel } from "@/types/resourceRequest/resourceRequest"; const CommentSection = (props: { id: string }) => { @@ -91,11 +93,13 @@ const CommentSection = (props: { id: string }) => { ) : (
- {comment.replace(/\n+/g, "\n")} -
-