Migrate Traefik Proxy dashboard UI to React
This commit is contained in:
parent
4790e4910f
commit
f16fff577a
324 changed files with 28303 additions and 19567 deletions
11
webui/src/utils/mocks.ts
Normal file
11
webui/src/utils/mocks.ts
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
export const useFetchWithPaginationMock = (options = {}) => ({
|
||||
error: null,
|
||||
isEmpty: false,
|
||||
isLoadingMore: false,
|
||||
isReachingEnd: true,
|
||||
loadMore: vi.fn,
|
||||
pageCount: 1,
|
||||
pageSWRs: [],
|
||||
pages: null,
|
||||
...options,
|
||||
})
|
||||
Loading…
Add table
Add a link
Reference in a new issue