From a796cb8e8b92f404e4344afee41a9b8cb44c20dc Mon Sep 17 00:00:00 2001 From: c-andy-candies <74613851+c-andy-candies@users.noreply.github.com> Date: Fri, 7 Jul 2023 19:37:50 +0200 Subject: [PATCH] Reopen PR 1420 Feature add three six and nine months options frontend (#1689) Co-authored-by: Dessalines --- src/shared/components/common/sort-select.tsx | 9 +++++++++ src/shared/utils/app/convert-comment-sort-type.ts | 3 +++ 2 files changed, 12 insertions(+) diff --git a/src/shared/components/common/sort-select.tsx b/src/shared/components/common/sort-select.tsx index 4d03ab5d..088f45ed 100644 --- a/src/shared/components/common/sort-select.tsx +++ b/src/shared/components/common/sort-select.tsx @@ -79,6 +79,15 @@ export class SortSelect extends Component { + + + diff --git a/src/shared/utils/app/convert-comment-sort-type.ts b/src/shared/utils/app/convert-comment-sort-type.ts index 665ab462..2f920d4d 100644 --- a/src/shared/utils/app/convert-comment-sort-type.ts +++ b/src/shared/utils/app/convert-comment-sort-type.ts @@ -11,6 +11,9 @@ export default function convertCommentSortType( case "TopDay": case "TopWeek": case "TopMonth": + case "TopThreeMonths": + case "TopSixMonths": + case "TopNineMonths": case "TopYear": { return "Top"; }