added skeletons

This commit is contained in:
plebbitor
2023-03-19 18:30:07 +01:00
parent 37e413b281
commit 1885a105e4
5 changed files with 105 additions and 8 deletions
+2 -4
View File
@@ -7,6 +7,7 @@ import { Threads } from './styles/Catalog.styled';
import { useFeed, useAccountsActions } from '@plebbit/plebbit-react-hooks';
import ImageBanner from '../ImageBanner';
import CaptchaModal from '../CaptchaModal';
import CatalogLoader from '../CatalogLoader';
import SettingsModal from '../SettingsModal';
import onError from '../../utils/onError';
import onSuccess from '../../utils/onSuccess';
@@ -205,9 +206,6 @@ const Catalog = ({ setBodyStyle }) => {
const handleVoidClick = () => {}
const handleClickTitle = (title, address) => {
setSelectedTitle(title);
setSelectedAddress(address);
@@ -500,7 +498,7 @@ const Catalog = ({ setBodyStyle }) => {
pageStart={0}
loadMore={tryLoadMore}
hasMore={hasMore}
loader={<div key={`loader-${feed.length}`}>Loading...</div>}
loader={<CatalogLoader key="loader" />}
>
{feed.map(thread => {
return (