mirror of
https://github.com/LemmyNet/lemmy-ui.git
synced 2024-12-23 03:11:25 +00:00
Reopen PR 1420 Feature add three six and nine months options frontend (#1689)
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
This commit is contained in:
parent
497fb7014f
commit
214eae5be5
2 changed files with 12 additions and 0 deletions
|
@ -79,6 +79,15 @@ export class SortSelect extends Component<SortSelectProps, SortSelectState> {
|
||||||
<option value={"TopMonth"}>
|
<option value={"TopMonth"}>
|
||||||
{I18NextService.i18n.t("top_month")}
|
{I18NextService.i18n.t("top_month")}
|
||||||
</option>
|
</option>
|
||||||
|
<option value={"TopThreeMonths"}>
|
||||||
|
{I18NextService.i18n.t("top_three_months")}
|
||||||
|
</option>
|
||||||
|
<option value={"TopSixMonths"}>
|
||||||
|
{I18NextService.i18n.t("top_six_months")}
|
||||||
|
</option>
|
||||||
|
<option value={"TopNineMonths"}>
|
||||||
|
{I18NextService.i18n.t("top_nine_months")}
|
||||||
|
</option>
|
||||||
<option value={"TopYear"}>{I18NextService.i18n.t("top_year")}</option>
|
<option value={"TopYear"}>{I18NextService.i18n.t("top_year")}</option>
|
||||||
<option value={"TopAll"}>{I18NextService.i18n.t("top_all")}</option>
|
<option value={"TopAll"}>{I18NextService.i18n.t("top_all")}</option>
|
||||||
</select>
|
</select>
|
||||||
|
|
|
@ -11,6 +11,9 @@ export default function convertCommentSortType(
|
||||||
case "TopDay":
|
case "TopDay":
|
||||||
case "TopWeek":
|
case "TopWeek":
|
||||||
case "TopMonth":
|
case "TopMonth":
|
||||||
|
case "TopThreeMonths":
|
||||||
|
case "TopSixMonths":
|
||||||
|
case "TopNineMonths":
|
||||||
case "TopYear": {
|
case "TopYear": {
|
||||||
return "Top";
|
return "Top";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue