diff --git a/web/components/contract-search.tsx b/web/components/contract-search.tsx index eff7cfb1..b7e16eb2 100644 --- a/web/components/contract-search.tsx +++ b/web/components/contract-search.tsx @@ -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' }, ] diff --git a/web/hooks/use-sort-and-query-params.tsx b/web/hooks/use-sort-and-query-params.tsx index 776bcd4d..9b06a413 100644 --- a/web/hooks/use-sort-and-query-params.tsx +++ b/web/hooks/use-sort-and-query-params.tsx @@ -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