Add "Last updated" sort option
This commit is contained in:
parent
98c5329e03
commit
688ebb797a
|
@ -37,6 +37,7 @@ const sortIndexes = [
|
||||||
{ label: 'Oldest', value: indexPrefix + 'contracts-oldest' },
|
{ label: 'Oldest', value: indexPrefix + 'contracts-oldest' },
|
||||||
{ label: 'Most traded', value: indexPrefix + 'contracts-most-traded' },
|
{ label: 'Most traded', value: indexPrefix + 'contracts-most-traded' },
|
||||||
{ label: '24h volume', value: indexPrefix + 'contracts-24-hour-vol' },
|
{ label: '24h volume', value: indexPrefix + 'contracts-24-hour-vol' },
|
||||||
|
{ label: 'Last updated', value: indexPrefix + 'contracts-last-updated' },
|
||||||
{ label: 'Close date', value: indexPrefix + 'contracts-close-date' },
|
{ label: 'Close date', value: indexPrefix + 'contracts-close-date' },
|
||||||
{ label: 'Resolve date', value: indexPrefix + 'contracts-resolve-date' },
|
{ label: 'Resolve date', value: indexPrefix + 'contracts-resolve-date' },
|
||||||
]
|
]
|
||||||
|
|
|
@ -10,9 +10,9 @@ export type Sort =
|
||||||
| 'oldest'
|
| 'oldest'
|
||||||
| 'most-traded'
|
| 'most-traded'
|
||||||
| '24-hour-vol'
|
| '24-hour-vol'
|
||||||
| 'closing-soon'
|
| 'close-date'
|
||||||
| 'closed'
|
| 'resolve-date'
|
||||||
| 'resolved'
|
| 'last-updated'
|
||||||
|
|
||||||
export function useInitialQueryAndSort(options?: {
|
export function useInitialQueryAndSort(options?: {
|
||||||
defaultSort: Sort
|
defaultSort: Sort
|
||||||
|
|
Loading…
Reference in New Issue
Block a user