From e0b174f5bbf5169e44272f832f1519897ac82bda Mon Sep 17 00:00:00 2001 From: Karthik J <114949890+Karthik150502@users.noreply.github.com> Date: Wed, 9 Oct 2024 02:38:48 +0530 Subject: [PATCH] Added a shadow to the PostCard component. (#1435) --- src/components/posts/PostCard.tsx | 31 +++++++++++++++---------------- 1 file changed, 15 insertions(+), 16 deletions(-) diff --git a/src/components/posts/PostCard.tsx b/src/components/posts/PostCard.tsx index e4cc4486d..bef916a81 100644 --- a/src/components/posts/PostCard.tsx +++ b/src/components/posts/PostCard.tsx @@ -99,11 +99,10 @@ const PostCard: React.FC = ({ return (
{ startTransition(() => { if (isExtendedQuestion(post)) { @@ -132,12 +131,12 @@ const PostCard: React.FC = ({
{(sessionUser?.role === ROLES.ADMIN || post?.author?.id === sessionUser?.id) && ( - - )} + + )} {parentAuthorName && isAnswer && ( @@ -216,10 +215,10 @@ const PostCard: React.FC = ({ {enableReply && ( -
= ({ sessionUser={sessionUser} reply={false} parentAuthorName={post.author.name} - isAnswer={true} /> + isAnswer={true} />
))}