removed InfiniteScroll loader

This commit is contained in:
plebbitor
2023-03-25 21:44:28 +01:00
parent 014a00386c
commit f1ac858534
+4 -1
View File
@@ -371,11 +371,13 @@ const Board = () => {
<Tooltip id="tooltip" className="tooltip" /> <Tooltip id="tooltip" className="tooltip" />
<BoardForm selectedStyle={selectedStyle}> <BoardForm selectedStyle={selectedStyle}>
<div className="board"> <div className="board">
{feed.length < 1 ? (
<PostLoader />
) : (
<InfiniteScroll <InfiniteScroll
pageStart={0} pageStart={0}
loadMore={tryLoadMore} loadMore={tryLoadMore}
hasMore={hasMore} hasMore={hasMore}
loader={<PostLoader key="loader" />}
> >
{feed.map(thread => { {feed.map(thread => {
const { replies: { pages: { topAll: { comments } } } } = thread; const { replies: { pages: { topAll: { comments } } } } = thread;
@@ -816,6 +818,7 @@ const Board = () => {
</Fragment> </Fragment>
)})} )})}
</InfiniteScroll> </InfiniteScroll>
)}
</div> </div>
</BoardForm> </BoardForm>
</Container> </Container>