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:
parent
ae93ff065d
commit
c986bc434b
8 changed files with 79 additions and 21 deletions
|
@ -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());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue