mirror of
https://github.com/bitsocialnet/5chan.git
synced 2026-08-03 07:41:04 +02:00
revert InfiniteScroll
This commit is contained in:
@@ -4,7 +4,8 @@ import { BoardContext } from '../App';
|
||||
import { Container, NavBar, Header, Break, PostFormLink, PostFormTable, PostForm, TopBar, BoardForm } from './styles/Board.styled';
|
||||
import ImageBanner from './ImageBanner';
|
||||
import { useFeed } from '@plebbit/plebbit-react-hooks';
|
||||
import InfiniteScroll from 'react-infinite-scroller';
|
||||
// import InfiniteScroll from 'react-infinite-scroller';
|
||||
|
||||
|
||||
const Board = ({ setBodyStyle }) => {
|
||||
const [defaultSubplebbits, setDefaultSubplebbits] = useState([]);
|
||||
@@ -217,12 +218,12 @@ const Board = ({ setBodyStyle }) => {
|
||||
</TopBar>
|
||||
<BoardForm selectedStyle={selectedStyle} id="board-form" name="board-form" action="" method="post">
|
||||
<div className="board">
|
||||
<InfiniteScroll
|
||||
{/* <InfiniteScroll
|
||||
pageStart={0}
|
||||
loadMore={loadMore}
|
||||
hasMore={hasMore}
|
||||
loader={<div>Loading...</div>}
|
||||
>
|
||||
> */}
|
||||
{feed.map(object => {
|
||||
let counter = 1;
|
||||
const thread = object;
|
||||
@@ -304,7 +305,7 @@ const Board = ({ setBodyStyle }) => {
|
||||
<hr key={`hr-${thread.cid}`} />
|
||||
</>
|
||||
)})}
|
||||
</InfiniteScroll>
|
||||
{/* </InfiniteScroll> */}
|
||||
</div>
|
||||
</BoardForm>
|
||||
</Container>
|
||||
|
||||
@@ -97,7 +97,7 @@ const Home = ({ setBodyStyle }) => {
|
||||
<a href="https://gitcoin.co/grants/5515/plebbit-a-serverless-adminless-decentralized-redd" target="_blank" rel="noopener noreferrer">Donate</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="https://plebbit.net/whitepaper" target="_blank" rel="noopener noreferrer">Whitepaper</a>
|
||||
<a href="https://plebbit.com/whitepaper" target="_blank" rel="noopener noreferrer">Whitepaper</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="https://snowtrace.io/token/0x625fc9bb971bb305a2ad63252665dcfe9098bee9" target="_blank" rel="noopener noreferrer">Contract</a>
|
||||
|
||||
@@ -1065,7 +1065,7 @@ export const BoardForm = styled.form`
|
||||
}
|
||||
|
||||
.post-info {
|
||||
margin: 2px 0;
|
||||
margin: 3px;
|
||||
display: block;
|
||||
width: 100%;
|
||||
}
|
||||
@@ -1194,7 +1194,7 @@ export const BoardForm = styled.form`
|
||||
}
|
||||
|
||||
.post-info {
|
||||
margin: 2px 0;
|
||||
margin: 3px;
|
||||
display: block;
|
||||
width: 100%;
|
||||
}
|
||||
@@ -1326,7 +1326,7 @@ export const BoardForm = styled.form`
|
||||
}
|
||||
|
||||
.post-info {
|
||||
margin: 2px 0;
|
||||
margin: 3px;
|
||||
display: block;
|
||||
width: 100%;
|
||||
}
|
||||
@@ -1462,7 +1462,7 @@ export const BoardForm = styled.form`
|
||||
}
|
||||
|
||||
.post-info {
|
||||
margin: 2px 0;
|
||||
margin: 3px;
|
||||
display: block;
|
||||
width: 100%;
|
||||
}
|
||||
@@ -1591,7 +1591,7 @@ export const BoardForm = styled.form`
|
||||
}
|
||||
|
||||
.post-info {
|
||||
margin: 2px 0;
|
||||
margin: 3px;
|
||||
display: block;
|
||||
width: 100%;
|
||||
}
|
||||
@@ -1724,7 +1724,7 @@ export const BoardForm = styled.form`
|
||||
}
|
||||
|
||||
.post-info {
|
||||
margin: 2px 0;
|
||||
margin: 3px;
|
||||
display: block;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user