revert InfiniteScroll

This commit is contained in:
plebbitor
2023-02-14 21:13:15 +01:00
parent 7946abbc8e
commit 9d46bf94e4
3 changed files with 12 additions and 11 deletions
+5 -4
View File
@@ -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>
+1 -1
View File
@@ -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>
+6 -6
View File
@@ -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%;
}