1
0
Fork 0
mirror of https://github.com/muerwre/vault-frontend.git synced 2025-04-25 12:56:41 +07:00

added lab pagination

This commit is contained in:
Fedor Katurov 2021-10-05 12:44:28 +07:00
parent ae93ff065d
commit c986bc434b
8 changed files with 79 additions and 21 deletions

View file

@ -15,6 +15,7 @@ import { Superpower } from '~/components/boris/Superpower';
import { Toggle } from '~/components/input/Toggle';
import { usePersistedState } from '~/utils/hooks/usePersistedState';
import classNames from 'classnames';
import { useLabPagination } from '~/utils/hooks/lab/useLabPagination';
interface IProps {}
@ -22,6 +23,8 @@ const LabLayout: FC<IProps> = () => {
const { is_loading } = useShallowSelect(selectLabList);
const dispatch = useDispatch();
useLabPagination({ isLoading: is_loading });
useEffect(() => {
dispatch(labGetList());
dispatch(labGetStats());