Massive/home-page-params.ts
Brandon Presley 672931746b Only reset SetList in certain situations
This reduces the jitter in the homepage
when you have scrolled down a significant
amount.

Related to #165. Still need to do other
list pages.
2023-08-22 09:49:56 +12:00

24 lines
341 B
TypeScript

import GymSet from "./gym-set";
export type HomePageParams = {
Sets: {
search?: string;
/**
* Reload the current list with limit = offset
*/
refresh?: number;
/**
* Reload the list with limit = 0
*/
reset?: number;
};
EditSet: {
set: GymSet;
};
EditSets: {
ids: number[];
};
};