From 81746fa047d7f37f49d70e9c98ef3dc790a58a07 Mon Sep 17 00:00:00 2001 From: wlren Date: Sun, 9 Oct 2022 00:33:03 +0800 Subject: [PATCH] [questions][chore] refactor and add in todo --- .../questions/card/QuestionCard.tsx | 8 ++-- .../questions/ui-patch/RadioGroup.tsx | 44 +++++++++---------- apps/portal/src/pages/questions/index.tsx | 2 +- 3 files changed, 26 insertions(+), 28 deletions(-) diff --git a/apps/portal/src/components/questions/card/QuestionCard.tsx b/apps/portal/src/components/questions/card/QuestionCard.tsx index 6b5c3ede..4572567d 100644 --- a/apps/portal/src/components/questions/card/QuestionCard.tsx +++ b/apps/portal/src/components/questions/card/QuestionCard.tsx @@ -43,15 +43,15 @@ export type QuestionCardProps = ActionButtonProps & UpvoteProps & { content: string; location: string; + receivedCount: number; role: string; - similarCount: number; timestamp: string; }; export default function QuestionCard({ answerCount, content, - similarCount, + receivedCount, showVoteButtons, showUserStatistics, showActionButton, @@ -63,7 +63,7 @@ export default function QuestionCard({ location, }: QuestionCardProps) { return ( -
+
{showVoteButtons && (