From 47445b3933979df7089b217013b4d1aab3f5d4f1 Mon Sep 17 00:00:00 2001
From: Meer Uzair <121447358+MeerUzairWasHere@users.noreply.github.com>
Date: Wed, 18 Sep 2024 23:05:54 +0530
Subject: [PATCH] Update Comments.tsx
---
src/components/comment/Comments.tsx | 64 +++++++++++++++--------------
1 file changed, 34 insertions(+), 30 deletions(-)
diff --git a/src/components/comment/Comments.tsx b/src/components/comment/Comments.tsx
index e7b309cda..a1bdbb6c0 100644
--- a/src/components/comment/Comments.tsx
+++ b/src/components/comment/Comments.tsx
@@ -241,36 +241,40 @@ const Comments = async ({
)}
-
-
-
-
-
- {(session.user.id.toString() ===
- (c as ExtendedComment).userId.toString() ||
- session.user.role === ROLES.ADMIN) && (
-
-
-
- )}
- {session.user.role === ROLES.ADMIN && (
-
-
-
- )}
- {session.user.role === ROLES.ADMIN && (
-
-
-
- )}
-
-
+ {(session.user.id.toString() ===
+ (c as ExtendedComment).userId.toString() ||
+ session.user.role === ROLES.ADMIN) && (
+
+
+
+
+
+ {(session.user.id.toString() ===
+ (c as ExtendedComment).userId.toString() ||
+ session.user.role === ROLES.ADMIN) && (
+
+
+
+ )}
+ {session.user.role === ROLES.ADMIN && (
+
+
+
+ )}
+ {session.user.role === ROLES.ADMIN && (
+
+
+
+ )}
+
+
+ )}