mirror of
https://github.com/bitsocialnet/5chan.git
synced 2026-08-03 07:41:04 +02:00
fix feed state
This commit is contained in:
@@ -602,7 +602,7 @@ const All = () => {
|
||||
<Link to={`/p/all/catalog`}>Catalog</Link>
|
||||
]
|
||||
</div>
|
||||
{feed ? (
|
||||
{subplebbits.state === "succeeded" ? (
|
||||
null
|
||||
) : (
|
||||
<div id="stats" style={{float: "right", marginTop: "5px"}}>
|
||||
|
||||
@@ -444,7 +444,7 @@ const AllCatalog = () => {
|
||||
<Link to={`/p/all`}>Return</Link>
|
||||
</span>
|
||||
</div>
|
||||
{feed ? (
|
||||
{subplebbits.state === "succeeded" ? (
|
||||
null
|
||||
) : (
|
||||
<div id="stats" style={{float: "right", marginTop: "5px"}}>
|
||||
|
||||
@@ -861,7 +861,7 @@ const Board = () => {
|
||||
{subplebbit?.state === "failed" ? (
|
||||
null
|
||||
) : (
|
||||
feed ? (
|
||||
subplebbit?.state === "succeeded" ? (
|
||||
<>
|
||||
{subplebbit.rules ?
|
||||
<>
|
||||
|
||||
@@ -667,7 +667,7 @@ const Catalog = () => {
|
||||
<Link to={`/p/${selectedAddress}`} onClick={()=> {window.scrollTo(0, 0)}}>Return</Link>
|
||||
]
|
||||
</div>
|
||||
{feed ? (
|
||||
{subplebbit.state === "succeeded" ? (
|
||||
<>
|
||||
<span className="subscribe-button-desktop">
|
||||
[
|
||||
@@ -701,7 +701,7 @@ const Catalog = () => {
|
||||
{subplebbit?.state === "failed" ? (
|
||||
null
|
||||
) : (
|
||||
feed ? (
|
||||
subplebbit.state === "succeeded" ? (
|
||||
<InfiniteScroll
|
||||
pageStart={0}
|
||||
loadMore={tryLoadMore}
|
||||
|
||||
@@ -611,7 +611,7 @@ const Subscriptions = () => {
|
||||
<Link to={`/p/subscriptions/catalog`}>Catalog</Link>
|
||||
]
|
||||
</div>
|
||||
{feed ? (
|
||||
{subplebbits.state === "succeeded" ? (
|
||||
null
|
||||
) : (
|
||||
<div id="stats" style={{float: "right", marginTop: "5px"}}>
|
||||
|
||||
@@ -448,7 +448,7 @@ const SubscriptionsCatalog = () => {
|
||||
<Link to={`/p/subscriptions`}>Return</Link>
|
||||
</span>
|
||||
</div>
|
||||
{feed ? (
|
||||
{subplebbits.state === "succeeded" ? (
|
||||
null
|
||||
) : (
|
||||
<div id="stats" style={{float: "right", marginTop: "5px"}}>
|
||||
|
||||
Reference in New Issue
Block a user