mirror of
https://github.com/bitsocialnet/5chan.git
synced 2026-08-03 07:41:04 +02:00
removed InfiniteScroll loader
This commit is contained in:
@@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user