mirror of
https://github.com/immich-app/immich.git
synced 2025-12-20 01:11:46 +03:00
feat: people infinite scroll (#11326)
* feat: people infinite scroll * add infinite scroll to show & hide modal * update unit tests * show total people count instead of currently loaded * update personsearchdto
This commit is contained in:
9
web/src/lib/__mocks__/intersection-observer.mock.ts
Normal file
9
web/src/lib/__mocks__/intersection-observer.mock.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
import { vi } from 'vitest';
|
||||
|
||||
export const getIntersectionObserverMock = () =>
|
||||
vi.fn(() => ({
|
||||
disconnect: vi.fn(),
|
||||
observe: vi.fn(),
|
||||
takeRecords: vi.fn(),
|
||||
unobserve: vi.fn(),
|
||||
}));
|
||||
Reference in New Issue
Block a user