Updated events/sessions pages. Added DateDistance component.
This commit is contained in:
@@ -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,
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user