From 214eae5be57f87afe1905c7fc97a7d03df8dfd5b 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 4d03ab5..088f45e 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 665ab46..2f920d4 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"; } -- 2.44.1