Updated events/sessions pages. Added DateDistance component.

This commit is contained in:
Mike Cao committed 2025-06-30 21:34:56 -07:00
1 parent 8b64029409
commit 5b300f1ff5
13 files changed
+44 -35

No files matched your search

+2 -2
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,
};
}