mirror of
https://github.com/bitsocialnet/5chan.git
synced 2026-08-03 07:41:04 +02:00
test InfiniteScroll
This commit is contained in:
@@ -4,7 +4,7 @@ import { BoardContext } from '../App';
|
|||||||
import { Container, NavBar, Header, Break, PostFormLink, PostFormTable, PostForm, TopBar, BoardForm } from './styles/Board.styled';
|
import { Container, NavBar, Header, Break, PostFormLink, PostFormTable, PostForm, TopBar, BoardForm } from './styles/Board.styled';
|
||||||
import ImageBanner from './ImageBanner';
|
import ImageBanner from './ImageBanner';
|
||||||
import { useFeed, useAccountsActions } from '@plebbit/plebbit-react-hooks';
|
import { useFeed, useAccountsActions } from '@plebbit/plebbit-react-hooks';
|
||||||
// import InfiniteScroll from 'react-infinite-scroller';
|
import InfiniteScroll from 'react-infinite-scroller';
|
||||||
|
|
||||||
|
|
||||||
const Board = ({ setBodyStyle }) => {
|
const Board = ({ setBodyStyle }) => {
|
||||||
@@ -300,12 +300,12 @@ const Board = ({ setBodyStyle }) => {
|
|||||||
</TopBar>
|
</TopBar>
|
||||||
<BoardForm selectedStyle={selectedStyle}>
|
<BoardForm selectedStyle={selectedStyle}>
|
||||||
<div className="board">
|
<div className="board">
|
||||||
{/* <InfiniteScroll
|
<InfiniteScroll
|
||||||
pageStart={0}
|
pageStart={0}
|
||||||
loadMore={loadMore}
|
loadMore={loadMore}
|
||||||
hasMore={hasMore}
|
hasMore={hasMore}
|
||||||
loader={<div>Loading...</div>}
|
loader={<div>Loading...</div>}
|
||||||
> */}
|
>
|
||||||
{feed.map(object => {
|
{feed.map(object => {
|
||||||
let counter = 1;
|
let counter = 1;
|
||||||
const thread = object;
|
const thread = object;
|
||||||
@@ -387,7 +387,7 @@ const Board = ({ setBodyStyle }) => {
|
|||||||
<hr key={`hr-${thread.cid}`} />
|
<hr key={`hr-${thread.cid}`} />
|
||||||
</>
|
</>
|
||||||
)})}
|
)})}
|
||||||
{/* </InfiniteScroll> */}
|
</InfiniteScroll>
|
||||||
</div>
|
</div>
|
||||||
</BoardForm>
|
</BoardForm>
|
||||||
</Container>
|
</Container>
|
||||||
|
|||||||
Reference in New Issue
Block a user