added subscriptions catalog view

This commit is contained in:
Tom
2023-05-07 17:48:38 +02:00
parent 351ff1df17
commit a17b3f2f8f
3 changed files with 367 additions and 9 deletions
+1 -7
View File
@@ -1,6 +1,6 @@
import React, { Fragment, useEffect, useMemo, useState } from 'react';
import { Helmet } from 'react-helmet-async';
import { Link, useNavigate, useParams } from 'react-router-dom';
import { Link, useNavigate } from 'react-router-dom';
import { Tooltip } from 'react-tooltip';
import { Virtuoso } from 'react-virtuoso';
import { useAccount, useAccountComments, useFeed } from '@plebbit/plebbit-react-hooks';
@@ -52,8 +52,6 @@ const Subscriptions = () => {
setSelectedFeed(feed.sort((a, b) => b.timestamp - a.timestamp));
}, [feed]);
const { subplebbitAddress } = useParams();
const [errorMessage] = useState(null);
useError(errorMessage, [errorMessage]);
@@ -137,10 +135,6 @@ const Subscriptions = () => {
setSelectedTitle(title);
setSelectedAddress(address);
setSelectedFeed(feed.filter(feed => feed.title === title));
if (subplebbitAddress === address) {
window.location.reload();
}
};
// mobile navbar board select functionality