Add "Last updated" sort option

This commit is contained in:
James Grugett 2022-05-21 13:44:51 -04:00
parent 98c5329e03
commit 688ebb797a
2 changed files with 4 additions and 3 deletions

View File

@ -37,6 +37,7 @@ const sortIndexes = [
{ label: 'Oldest', value: indexPrefix + 'contracts-oldest' },
{ label: 'Most traded', value: indexPrefix + 'contracts-most-traded' },
{ 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: 'Resolve date', value: indexPrefix + 'contracts-resolve-date' },
]

View File

@ -10,9 +10,9 @@ export type Sort =
| 'oldest'
| 'most-traded'
| '24-hour-vol'
| 'closing-soon'
| 'closed'
| 'resolved'
| 'close-date'
| 'resolve-date'
| 'last-updated'
export function useInitialQueryAndSort(options?: {
defaultSort: Sort