From 4950f232e4fb94f23a2d3e9d3d4a174dcb53d21c Mon Sep 17 00:00:00 2001 From: Jeff Sieu Date: Sun, 30 Oct 2022 03:42:02 +0800 Subject: [PATCH] [questions][feat] add sorting, pagination to answers, comments --- .../questions/ContributeQuestionCard.tsx | 4 +- .../questions/QuestionSearchBar.tsx | 70 +---- .../questions/SortOptionsSelect.tsx | 69 +++++ .../answer/[answerId]/[answerSlug]/index.tsx | 103 ++++---- .../[questionId]/[questionSlug]/index.tsx | 239 ++++++++++-------- apps/portal/src/pages/questions/browse.tsx | 4 - 6 files changed, 267 insertions(+), 222 deletions(-) create mode 100644 apps/portal/src/components/questions/SortOptionsSelect.tsx diff --git a/apps/portal/src/components/questions/ContributeQuestionCard.tsx b/apps/portal/src/components/questions/ContributeQuestionCard.tsx index fa25d9f1..02f496aa 100644 --- a/apps/portal/src/components/questions/ContributeQuestionCard.tsx +++ b/apps/portal/src/components/questions/ContributeQuestionCard.tsx @@ -28,9 +28,9 @@ export default function ContributeQuestionCard({ }; return ( -
+