From 3ead364285477cf7aa9791db080e6f96fc868859 Mon Sep 17 00:00:00 2001 From: Aaron Wang Date: Fri, 6 Dec 2024 19:23:19 -0800 Subject: [PATCH] Update SubReview.tsx --- site/src/component/Review/SubReview.tsx | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/site/src/component/Review/SubReview.tsx b/site/src/component/Review/SubReview.tsx index bb40439b..2fc94f2f 100644 --- a/site/src/component/Review/SubReview.tsx +++ b/site/src/component/Review/SubReview.tsx @@ -195,21 +195,29 @@ const SubReview: FC = ({ review, course, professor }) => {
-
-

- Posted by {review.userDisplay} +

+

+ Posted by {review.userDisplay} {review.verified && verifiedBadge} {review.authored && authorBadge} +

{review.content}

-

+

+ Created{' '} {new Date(review.createdAt).toLocaleString('default', { year: 'numeric', month: 'long', day: 'numeric', })} +
+ Updated{' '} + {new Date(review.updatedAt).toLocaleString('default', { + year: 'numeric', + month: 'long', + day: 'numeric', + })}

-

{review.content}