diff --git a/apps/portal/src/components/resumes/comments/comment/Comment.tsx b/apps/portal/src/components/resumes/comments/comment/Comment.tsx index cb08480b..ad219a80 100644 --- a/apps/portal/src/components/resumes/comments/comment/Comment.tsx +++ b/apps/portal/src/components/resumes/comments/comment/Comment.tsx @@ -11,7 +11,7 @@ type CommentProps = { export default function Comment({ comment, userId }: CommentProps) { const isCommentOwner = userId === comment.user.userId; return ( - + ); diff --git a/apps/portal/src/components/resumes/comments/comment/CommentCard.tsx b/apps/portal/src/components/resumes/comments/comment/CommentCard.tsx index bbe0f840..7cb89169 100644 --- a/apps/portal/src/components/resumes/comments/comment/CommentCard.tsx +++ b/apps/portal/src/components/resumes/comments/comment/CommentCard.tsx @@ -2,20 +2,11 @@ import type { ReactNode } from 'react'; type CommentCardProps = { children: ReactNode; - isCommentOwner?: boolean; }; -export default function CommentCard({ - isCommentOwner, - children, -}: CommentCardProps) { - // Used two different
to allow customisation of owner comments - return isCommentOwner ? ( -
- {children} -
- ) : ( -
+export default function CommentCard({ children }: CommentCardProps) { + return ( +
{children}
);