mirror of
https://github.com/bitsocialnet/5chan.git
synced 2026-08-03 07:41:04 +02:00
fix(hooks): more accurate state strings
This commit is contained in:
@@ -139,7 +139,7 @@ const All = () => {
|
||||
const { subplebbits } = useSubplebbits({ subplebbitAddresses: addresses, sortType: 'active' });
|
||||
const [selectedFeed, setSelectedFeed] = useState(feed.sort((a, b) => b.timestamp - a.timestamp));
|
||||
|
||||
const stateString = useFeedStateString(subplebbits);
|
||||
const stateString = useFeedStateString(addresses);
|
||||
|
||||
useEffect(() => {
|
||||
if (feed) {
|
||||
|
||||
@@ -731,7 +731,7 @@ const AllCatalog = () => {
|
||||
const { subplebbits } = useSubplebbits({ subplebbitAddresses: addresses, sortType: 'active' });
|
||||
const [selectedFeed, setSelectedFeed] = useState(feed.sort((a, b) => b.timestamp - a.timestamp));
|
||||
|
||||
const stateString = useFeedStateString(subplebbits);
|
||||
const stateString = useFeedStateString(addresses);
|
||||
|
||||
const columnWidth = 180;
|
||||
const windowWidth = useWindowWidth();
|
||||
|
||||
@@ -138,7 +138,7 @@ const Subscriptions = () => {
|
||||
const [selectedFeed, setSelectedFeed] = useState(feed.sort((a, b) => b.timestamp - a.timestamp));
|
||||
const { subplebbits } = useSubplebbits({ subplebbitAddresses: account?.subscriptions, sortType: 'active' });
|
||||
|
||||
const stateString = useFeedStateString(subplebbits);
|
||||
const stateString = useFeedStateString(account?.subscriptions);
|
||||
|
||||
useEffect(() => {
|
||||
if (feed) {
|
||||
|
||||
@@ -731,7 +731,7 @@ const SubscriptionsCatalog = () => {
|
||||
const [selectedFeed, setSelectedFeed] = useState(feed.sort((a, b) => b.timestamp - a.timestamp));
|
||||
const { subplebbits } = useSubplebbits({ subplebbitAddresses: account?.subscriptions, sortType: 'active' });
|
||||
|
||||
const stateString = useFeedStateString(subplebbits);
|
||||
const stateString = useFeedStateString(account?.subscriptions);
|
||||
|
||||
const columnWidth = 180;
|
||||
const windowWidth = useWindowWidth();
|
||||
|
||||
Reference in New Issue
Block a user