summaryrefslogtreecommitdiffstats
path: root/ui/src/components/sort-select.tsx
diff options
context:
space:
mode:
authorDessalines <tyhou13@gmx.com>2020-02-02 13:50:44 -0500
committerDessalines <tyhou13@gmx.com>2020-02-02 13:50:44 -0500
commitac943f8951fe7da86aaa9f41ee879ab670786c86 (patch)
treec8aabdada00514135c35d2aa9be6890a95bac743 /ui/src/components/sort-select.tsx
parent23daba54b4dbc3220effaa5d55042db5398cde43 (diff)
Finishing up interpolation rework.
Diffstat (limited to 'ui/src/components/sort-select.tsx')
-rw-r--r--ui/src/components/sort-select.tsx33
1 files changed, 8 insertions, 25 deletions
diff --git a/ui/src/components/sort-select.tsx b/ui/src/components/sort-select.tsx
index fbdaa594..5515f746 100644
--- a/ui/src/components/sort-select.tsx
+++ b/ui/src/components/sort-select.tsx
@@ -1,7 +1,6 @@
import { Component, linkEvent } from 'inferno';
import { SortType } from '../interfaces';
import { i18n } from '../i18next';
-import { T } from 'inferno-i18next';
interface SortSelectProps {
sort: SortType;
@@ -30,33 +29,17 @@ export class SortSelect extends Component<SortSelectProps, SortSelectState> {
onChange={linkEvent(this, this.handleSortChange)}
class="custom-select custom-select-sm w-auto"
>
- <option disabled>
- { i18n.t('sort_type') }
- </option>
+ <option disabled>{i18n.t('sort_type')}</option>
{!this.props.hideHot && (
- <option value={SortType.Hot}>
- { i18n.t('hot') }
- </option>
+ <option value={SortType.Hot}>{i18n.t('hot')}</option>
)}
- <option value={SortType.New}>
- { i18n.t('new') }
- </option>
+ <option value={SortType.New}>{i18n.t('new')}</option>
<option disabled>─────</option>
- <option value={SortType.TopDay}>
- { i18n.t('top_day') }
- </option>
- <option value={SortType.TopWeek}>
- { i18n.t('week') }
- </option>
- <option value={SortType.TopMonth}>
- { i18n.t('month') }
- </option>
- <option value={SortType.TopYear}>
- { i18n.t('year') }
- </option>
- <option value={SortType.TopAll}>
- { i18n.t('all') }
- </option>
+ <option value={SortType.TopDay}>{i18n.t('top_day')}</option>
+ <option value={SortType.TopWeek}>{i18n.t('week')}</option>
+ <option value={SortType.TopMonth}>{i18n.t('month')}</option>
+ <option value={SortType.TopYear}>{i18n.t('year')}</option>
+ <option value={SortType.TopAll}>{i18n.t('all')}</option>
</select>
);
}