From b9ff8157af1cd010a1977c07ec5b361feb6485fa Mon Sep 17 00:00:00 2001 From: Jeff Sieu Date: Mon, 10 Oct 2022 17:45:00 +0800 Subject: [PATCH] [questions][ui] update answer card --- .../questions/QuestionSearchBar.tsx | 28 ++++++------ .../questions/QuestionTypeBadge.tsx | 17 ++++++++ .../components/questions/card/AnswerCard.tsx | 36 +++++++++------- .../questions/card/FullAnswerCard.tsx | 43 ++++--------------- .../questions/card/FullQuestionCard.tsx | 10 +++-- .../questions/card/QuestionAnswerCard.tsx | 15 +++++++ .../questions/card/QuestionCard.tsx | 13 +++--- .../[questionId]/[questionSlug]/index.tsx | 4 +- apps/portal/src/pages/questions/index.tsx | 2 +- 9 files changed, 90 insertions(+), 78 deletions(-) create mode 100644 apps/portal/src/components/questions/QuestionTypeBadge.tsx create mode 100644 apps/portal/src/components/questions/card/QuestionAnswerCard.tsx diff --git a/apps/portal/src/components/questions/QuestionSearchBar.tsx b/apps/portal/src/components/questions/QuestionSearchBar.tsx index d57c8a48..c5f401ea 100644 --- a/apps/portal/src/components/questions/QuestionSearchBar.tsx +++ b/apps/portal/src/components/questions/QuestionSearchBar.tsx @@ -25,8 +25,8 @@ export default function QuestionSearchBar< onFilterOptionsToggle, }: QuestionSearchBarProps) { return ( -
-
+
+
- - Sort by: - - +