forked from tanner/qotnews
Put the loading status down below
This commit is contained in:
@@ -101,7 +101,7 @@ function Feed({ updateCache }) {
|
||||
<title>QotNews</title>
|
||||
<meta name="robots" content="index" />
|
||||
</Helmet>
|
||||
{loadingStatus && <p>Preloading stories {loadingStatus.current} / {loadingStatus.total}...</p>}
|
||||
|
||||
{error &&
|
||||
<details style={{marginBottom: '1rem'}}>
|
||||
<summary>Connection error? Click to expand.</summary>
|
||||
@@ -109,6 +109,7 @@ function Feed({ updateCache }) {
|
||||
{stories && <p>Loaded feed from cache.</p>}
|
||||
</details>
|
||||
}
|
||||
|
||||
{stories ?
|
||||
<div>
|
||||
{stories.map(x =>
|
||||
@@ -130,6 +131,8 @@ function Feed({ updateCache }) {
|
||||
:
|
||||
<p>Loading...</p>
|
||||
}
|
||||
|
||||
{loadingStatus && <p>Preloading stories {loadingStatus.current} / {loadingStatus.total}...</p>}
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user