Fix spelling of SORT_ASCENDING in search constants

This commit is contained in:
kt programs 2022-05-30 10:04:34 +08:00 committed by infinite-persistence
parent ba62170ef7
commit c16fb8c906
3 changed files with 3 additions and 3 deletions

View file

@ -15,7 +15,7 @@ declare type SearchOptions = {
MEDIA_IMAGE: string, MEDIA_IMAGE: string,
MEDIA_APPLICATION: string, MEDIA_APPLICATION: string,
SORT: string, SORT: string,
SORT_ACCENDING: string, SORT_ASCENDING: string,
SORT_DESCENDING: string, SORT_DESCENDING: string,
EXACT: string, EXACT: string,
TIME_FILTER: string, TIME_FILTER: string,

View file

@ -33,7 +33,7 @@ const TIME_FILTER = {
const SORT_BY = { const SORT_BY = {
'': 'Relevance', '': 'Relevance',
[SEARCH_OPTIONS.SORT_DESCENDING]: 'Newest first', [SEARCH_OPTIONS.SORT_DESCENDING]: 'Newest first',
[SEARCH_OPTIONS.SORT_ACCENDING]: 'Oldest first', [SEARCH_OPTIONS.SORT_ASCENDING]: 'Oldest first',
}; };
type Props = { type Props = {

View file

@ -24,7 +24,7 @@ export const SEARCH_OPTIONS = {
MEDIA_IMAGE: 'image', MEDIA_IMAGE: 'image',
MEDIA_APPLICATION: 'application', MEDIA_APPLICATION: 'application',
SORT: 'sort_by', SORT: 'sort_by',
SORT_ACCENDING: '^release_time', SORT_ASCENDING: '^release_time',
SORT_DESCENDING: 'release_time', SORT_DESCENDING: 'release_time',
EXACT: 'exact', EXACT: 'exact',
PRICE_FILTER_FREE: 'free_only', PRICE_FILTER_FREE: 'free_only',