diff --git a/packages/web/components/templates/library/LibraryContainer.tsx b/packages/web/components/templates/library/LibraryContainer.tsx index 6c53bf13b..80c07059d 100644 --- a/packages/web/components/templates/library/LibraryContainer.tsx +++ b/packages/web/components/templates/library/LibraryContainer.tsx @@ -57,6 +57,7 @@ import { useHandleAddUrl } from '../../../lib/hooks/useHandleAddUrl' import { InfiniteData, useQueryClient } from '@tanstack/react-query' import { useGetViewer } from '../../../lib/networking/viewer/useGetViewer' import { Spinner } from '@phosphor-icons/react/dist/ssr' +import InfiniteScroll from 'react-infinite-scroll-component' export type LayoutType = 'LIST_LAYOUT' | 'GRID_LAYOUT' @@ -809,6 +810,24 @@ export function LibraryContainer(props: LibraryContainerProps): JSX.Element { [itemsPages, multiSelectMode, checkedItems] ) + return ( + Loading...} + endMessage={ + + Yay! You have seen it all + + } + > + {libraryItems.map((item) => { + return {item.node.title} + })} + + ) + return (
+ Yay! You have seen it all +