added IPFS loading indicator

This commit is contained in:
plebbitor
2023-03-22 15:35:28 +01:00
parent 2f681e26bc
commit 15a5d33447
4 changed files with 9 additions and 3 deletions
+3
View File
@@ -373,6 +373,9 @@ const Board = () => {
<Link to={`/${selectedAddress}/catalog`}>Catalog</Link>
]
</div>
<div id="stats" style={{float: "right", marginTop: "5px"}}>
{feed.length > 0 ? (null) : (<span>Fetching IPFS...</span>)}
</div>
<div id="catalog-button-mobile">
<span className="btn-wrap">
<Link to={`/${selectedAddress}/catalog`}>Catalog</Link>
+3
View File
@@ -321,6 +321,9 @@ const Catalog = () => {
<Link to={`/${selectedAddress}`}>Return</Link>
</span>
</div>
<div id="stats" style={{float: "right", marginTop: "5px"}}>
{feed.length > 0 ? (null) : (<span>Fetching IPFS...</span>)}
</div>
<hr />
</TopBar>
<Threads selectedStyle={selectedStyle}>
+2 -2
View File
@@ -378,10 +378,10 @@ const Thread = () => {
<span className="reply-stat">No replies yet</span>
)
) : (
<span className="reply-stat">Loading...</span>
<span className="reply-stat">Fetching IPFS...</span>
)
) : (
null
<span className="reply-stat">Fetching IPFS...</span>
)}
<hr />
</TopBar>
+1 -1
View File
@@ -1399,7 +1399,7 @@ export const TopBar = styled.div`
}
}
${({ selectedStyle }) => {
${({ selectedStyle }) => {
switch (selectedStyle) {
case 'Yotsuba':
return `.btn-wrap {