mirror of
https://github.com/bitsocialnet/5chan.git
synced 2026-08-03 07:41:04 +02:00
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "plebchan",
|
"name": "plebchan",
|
||||||
"version": "0.1.7",
|
"version": "0.1.8",
|
||||||
"private": true,
|
"private": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/core": "7.21.3",
|
"@babel/core": "7.21.3",
|
||||||
|
|||||||
+2
-2
@@ -40,8 +40,8 @@ export default function App() {
|
|||||||
|
|
||||||
const account = useAccount();
|
const account = useAccount();
|
||||||
|
|
||||||
const setErrorMessage = useError();
|
const [, setErrorMessage] = useError();
|
||||||
const setSuccessMessage = useSuccess();
|
const [, setSuccessMessage] = useSuccess();
|
||||||
|
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ const ModerationModal = ({ isOpen, closeModal, deletePost }) => {
|
|||||||
const [triggerPublishCommentEdit, setTriggerPublishCommentEdit] = useState(false);
|
const [triggerPublishCommentEdit, setTriggerPublishCommentEdit] = useState(false);
|
||||||
|
|
||||||
const [errorMessage, setErrorMessage] = useError();
|
const [errorMessage, setErrorMessage] = useError();
|
||||||
const setSuccessMessage = useSuccess();
|
const [, setSuccessMessage] = useSuccess();
|
||||||
|
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ const ReplyModal = ({ isOpen, closeModal }) => {
|
|||||||
|
|
||||||
const account = useAccount();
|
const account = useAccount();
|
||||||
|
|
||||||
const setErrorMessage = useError();
|
const [, setErrorMessage] = useError();
|
||||||
|
|
||||||
const nodeRef = useRef(null);
|
const nodeRef = useRef(null);
|
||||||
const nameRef = useRef();
|
const nameRef = useRef();
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ const SettingsModal = ({ isOpen, closeModal }) => {
|
|||||||
const [accountJson, setAccountJson] = useState(null);
|
const [accountJson, setAccountJson] = useState(null);
|
||||||
|
|
||||||
const setErrorMessage = useError();
|
const setErrorMessage = useError();
|
||||||
const setSuccessMessage = useSuccess();
|
const [, setSuccessMessage] = useSuccess();
|
||||||
|
|
||||||
const account = useAccount();
|
const account = useAccount();
|
||||||
const { accounts } = useAccounts();
|
const { accounts } = useAccounts();
|
||||||
|
|||||||
@@ -328,9 +328,7 @@ const All = () => {
|
|||||||
<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 ? (
|
{feed.length > 0 ? (
|
||||||
null
|
|
||||||
) : (
|
|
||||||
<Virtuoso
|
<Virtuoso
|
||||||
increaseViewportBy={2000}
|
increaseViewportBy={2000}
|
||||||
data={selectedFeed}
|
data={selectedFeed}
|
||||||
@@ -1245,6 +1243,8 @@ const All = () => {
|
|||||||
useWindowScroll={true}
|
useWindowScroll={true}
|
||||||
components={{ Footer: hasMore ? () => <PostLoader /> : null }}
|
components={{ Footer: hasMore ? () => <PostLoader /> : null }}
|
||||||
/>
|
/>
|
||||||
|
) : (
|
||||||
|
<PostLoader />
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
{createPortal(
|
{createPortal(
|
||||||
|
|||||||
@@ -9,6 +9,7 @@ import useGeneralStore from '../../hooks/stores/useGeneralStore';
|
|||||||
import { Container, NavBar, Header, Break} from '../styled/views/Board.styled';
|
import { Container, NavBar, Header, Break} from '../styled/views/Board.styled';
|
||||||
import { Threads } from '../styled/views/Catalog.styled';
|
import { Threads } from '../styled/views/Catalog.styled';
|
||||||
import { TopBar, Footer } from '../styled/views/Thread.styled';
|
import { TopBar, Footer } from '../styled/views/Thread.styled';
|
||||||
|
import CatalogLoader from '../CatalogLoader';
|
||||||
import ImageBanner from '../ImageBanner';
|
import ImageBanner from '../ImageBanner';
|
||||||
import OfflineIndicator from '../OfflineIndicator';
|
import OfflineIndicator from '../OfflineIndicator';
|
||||||
import SettingsModal from '../modals/SettingsModal';
|
import SettingsModal from '../modals/SettingsModal';
|
||||||
@@ -207,9 +208,7 @@ const AllCatalog = () => {
|
|||||||
</TopBar>
|
</TopBar>
|
||||||
<Tooltip id="tooltip" className="tooltip" />
|
<Tooltip id="tooltip" className="tooltip" />
|
||||||
<Threads selectedStyle={selectedStyle}>
|
<Threads selectedStyle={selectedStyle}>
|
||||||
{ feed.length < 1 ? (
|
{feed.length > 0 ? (
|
||||||
null
|
|
||||||
) : (
|
|
||||||
<InfiniteScroll
|
<InfiniteScroll
|
||||||
pageStart={0}
|
pageStart={0}
|
||||||
loadMore={tryLoadMore}
|
loadMore={tryLoadMore}
|
||||||
@@ -289,6 +288,8 @@ const AllCatalog = () => {
|
|||||||
</Link>
|
</Link>
|
||||||
)})}
|
)})}
|
||||||
</InfiniteScroll>
|
</InfiniteScroll>
|
||||||
|
) : (
|
||||||
|
<CatalogLoader />
|
||||||
)}
|
)}
|
||||||
</Threads>
|
</Threads>
|
||||||
<Footer selectedStyle={selectedStyle}>
|
<Footer selectedStyle={selectedStyle}>
|
||||||
|
|||||||
@@ -70,7 +70,7 @@ const Board = () => {
|
|||||||
const { subplebbitAddress } = useParams();
|
const { subplebbitAddress } = useParams();
|
||||||
|
|
||||||
const [errorMessage, setErrorMessage] = useError();
|
const [errorMessage, setErrorMessage] = useError();
|
||||||
const setSuccessMessage = useSuccess();
|
const [, setSuccessMessage] = useSuccess();
|
||||||
|
|
||||||
const nameRef = useRef();
|
const nameRef = useRef();
|
||||||
const subjectRef = useRef();
|
const subjectRef = useRef();
|
||||||
|
|||||||
@@ -61,7 +61,7 @@ const Catalog = () => {
|
|||||||
const navigate = useNavigate();
|
const navigate = useNavigate();
|
||||||
|
|
||||||
const [errorMessage, setErrorMessage] = useError();
|
const [errorMessage, setErrorMessage] = useError();
|
||||||
const setSuccessMessage = useSuccess();
|
const [, setSuccessMessage] = useSuccess();
|
||||||
|
|
||||||
const [triggerPublishComment, setTriggerPublishComment] = useState(false);
|
const [triggerPublishComment, setTriggerPublishComment] = useState(false);
|
||||||
const [prevScrollPos, setPrevScrollPos] = useState(0);
|
const [prevScrollPos, setPrevScrollPos] = useState(0);
|
||||||
|
|||||||
@@ -69,7 +69,7 @@ const Thread = () => {
|
|||||||
const handleClickForm = useClickForm();
|
const handleClickForm = useClickForm();
|
||||||
|
|
||||||
const [errorMessage, setErrorMessage] = useError();
|
const [errorMessage, setErrorMessage] = useError();
|
||||||
const setSuccessMessage = useSuccess();
|
const [, setSuccessMessage] = useSuccess();
|
||||||
|
|
||||||
const nameRef = useRef();
|
const nameRef = useRef();
|
||||||
const commentRef = useRef();
|
const commentRef = useRef();
|
||||||
|
|||||||
Reference in New Issue
Block a user