Updated events/sessions pages. Added DateDistance component.

This commit is contained in:
Mike Cao 2025-06-30 21:34:56 -07:00
parent 8b64029409
commit 5b300f1ff5
13 changed files with 44 additions and 35 deletions

View file

@ -12,7 +12,7 @@ export function usePagedQuery<T = any>({
const { query: queryParams } = useNavigation();
const [params, setParams] = useState<PageParams>({
search: '',
page: +queryParams?.page || 1,
page: queryParams?.page || '1',
});
const { useQuery } = useApi();
@ -25,7 +25,7 @@ export function usePagedQuery<T = any>({
return {
result: data as PageResult<T>,
query,
filterParams: params,
params,
setParams,
};
}