|
|
|
|
@ -12,7 +12,6 @@ import type { TournamentType } from 'requests/getMatches/types' |
|
|
|
|
import { useQueryParamStore } from 'hooks' |
|
|
|
|
|
|
|
|
|
import { filterKeys } from '../config' |
|
|
|
|
import { serializeDate } from '../helpers/dateSerializers' |
|
|
|
|
import { isValidDate } from '../helpers/isValidDate' |
|
|
|
|
|
|
|
|
|
export const useFilters = () => { |
|
|
|
|
@ -21,7 +20,6 @@ export const useFilters = () => { |
|
|
|
|
clearOnUnmount: true, |
|
|
|
|
defaultValue: new Date(), |
|
|
|
|
key: filterKeys.DATE, |
|
|
|
|
serialize: serializeDate, |
|
|
|
|
validator: isValidDate, |
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|