From e32c7efab217f178178d66e90b54e926e105ae0c Mon Sep 17 00:00:00 2001 From: Jeff Sieu Date: Tue, 8 Nov 2022 02:10:21 +0800 Subject: [PATCH] [questions][fix] show line breaks in answers, comments --- apps/portal/src/components/questions/card/AnswerCard.tsx | 2 +- .../src/components/questions/comments/CommentListItem.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/portal/src/components/questions/card/AnswerCard.tsx b/apps/portal/src/components/questions/card/AnswerCard.tsx index 68e94d17..256dc3e9 100644 --- a/apps/portal/src/components/questions/card/AnswerCard.tsx +++ b/apps/portal/src/components/questions/card/AnswerCard.tsx @@ -53,7 +53,7 @@ export default function AnswerCard({ Posted on: {format(createdAt, 'h:mm a, MMMM dd, yyyy')}

-

{content}

+

{content}

{commentCount !== undefined && (
diff --git a/apps/portal/src/components/questions/comments/CommentListItem.tsx b/apps/portal/src/components/questions/comments/CommentListItem.tsx index 1039e51c..50c44f11 100644 --- a/apps/portal/src/components/questions/comments/CommentListItem.tsx +++ b/apps/portal/src/components/questions/comments/CommentListItem.tsx @@ -44,7 +44,7 @@ export default function CommentListItem({ Posted on: {format(createdAt, 'h:mm a, MMMM dd, yyyy')}

-

{content}

+

{content}

);