Skip to content

Commit

Permalink
Update SubReview.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
philosolog committed Dec 7, 2024
1 parent 7113666 commit 3ead364
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions site/src/component/Review/SubReview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -195,21 +195,29 @@ const SubReview: FC<SubReviewProps> = ({ review, course, professor }) => {
</div>
</div>
<div>
<div className="subreview-author">
<p className=" gapped">
<span className=" mr-1">Posted by {review.userDisplay}</span>
<div className="subreview-author" style={{ display: 'flex', justifyContent: 'space-between' }}>
<p style={{ textAlign: 'left' }}>
<span className="mr-1">Posted by {review.userDisplay}</span>
{review.verified && verifiedBadge}
{review.authored && authorBadge}
<p>{review.content}</p>
</p>
<p>
<p style={{ textAlign: 'right' }}>
Created{' '}
{new Date(review.createdAt).toLocaleString('default', {
year: 'numeric',
month: 'long',
day: 'numeric',
})}
<br />
Updated{' '}
{new Date(review.updatedAt).toLocaleString('default', {
year: 'numeric',
month: 'long',
day: 'numeric',
})}
</p>
</div>
<p>{review.content}</p>
</div>
</div>
</div>
Expand Down

0 comments on commit 3ead364

Please sign in to comment.