From ab1cea7c003406cb78ad39a0d3bc714c59dbfd40 Mon Sep 17 00:00:00 2001 From: "plebeius.eth" Date: Fri, 9 Jun 2023 09:00:23 +0200 Subject: [PATCH 1/3] add skeleton to p/all --- src/components/views/All.jsx | 6 +++--- src/components/views/AllCatalog.jsx | 7 ++++--- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/src/components/views/All.jsx b/src/components/views/All.jsx index d64365d5..b83b8f5c 100755 --- a/src/components/views/All.jsx +++ b/src/components/views/All.jsx @@ -328,9 +328,7 @@ const All = () => {
- { feed.length < 1 ? ( - null - ) : ( + {feed.length > 0 ? ( { useWindowScroll={true} components={{ Footer: hasMore ? () => : null }} /> + ) : ( + )}
{createPortal( diff --git a/src/components/views/AllCatalog.jsx b/src/components/views/AllCatalog.jsx index 45f19728..50947405 100755 --- a/src/components/views/AllCatalog.jsx +++ b/src/components/views/AllCatalog.jsx @@ -9,6 +9,7 @@ import useGeneralStore from '../../hooks/stores/useGeneralStore'; import { Container, NavBar, Header, Break} from '../styled/views/Board.styled'; import { Threads } from '../styled/views/Catalog.styled'; import { TopBar, Footer } from '../styled/views/Thread.styled'; +import CatalogLoader from '../CatalogLoader'; import ImageBanner from '../ImageBanner'; import OfflineIndicator from '../OfflineIndicator'; import SettingsModal from '../modals/SettingsModal'; @@ -207,9 +208,7 @@ const AllCatalog = () => { - { feed.length < 1 ? ( - null - ) : ( + {feed.length > 0 ? ( { )})} + ) : ( + )}