mirror of
https://github.com/bitsocialnet/5chan.git
synced 2026-08-03 07:41:04 +02:00
added IPFS loading indicator
This commit is contained in:
@@ -373,6 +373,9 @@ const Board = () => {
|
|||||||
<Link to={`/${selectedAddress}/catalog`}>Catalog</Link>
|
<Link to={`/${selectedAddress}/catalog`}>Catalog</Link>
|
||||||
]
|
]
|
||||||
</div>
|
</div>
|
||||||
|
<div id="stats" style={{float: "right", marginTop: "5px"}}>
|
||||||
|
{feed.length > 0 ? (null) : (<span>Fetching IPFS...</span>)}
|
||||||
|
</div>
|
||||||
<div id="catalog-button-mobile">
|
<div id="catalog-button-mobile">
|
||||||
<span className="btn-wrap">
|
<span className="btn-wrap">
|
||||||
<Link to={`/${selectedAddress}/catalog`}>Catalog</Link>
|
<Link to={`/${selectedAddress}/catalog`}>Catalog</Link>
|
||||||
|
|||||||
@@ -321,6 +321,9 @@ const Catalog = () => {
|
|||||||
<Link to={`/${selectedAddress}`}>Return</Link>
|
<Link to={`/${selectedAddress}`}>Return</Link>
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
|
<div id="stats" style={{float: "right", marginTop: "5px"}}>
|
||||||
|
{feed.length > 0 ? (null) : (<span>Fetching IPFS...</span>)}
|
||||||
|
</div>
|
||||||
<hr />
|
<hr />
|
||||||
</TopBar>
|
</TopBar>
|
||||||
<Threads selectedStyle={selectedStyle}>
|
<Threads selectedStyle={selectedStyle}>
|
||||||
|
|||||||
@@ -378,10 +378,10 @@ const Thread = () => {
|
|||||||
<span className="reply-stat">No replies yet</span>
|
<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 />
|
<hr />
|
||||||
</TopBar>
|
</TopBar>
|
||||||
|
|||||||
@@ -1399,7 +1399,7 @@ export const TopBar = styled.div`
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
${({ selectedStyle }) => {
|
${({ selectedStyle }) => {
|
||||||
switch (selectedStyle) {
|
switch (selectedStyle) {
|
||||||
case 'Yotsuba':
|
case 'Yotsuba':
|
||||||
return `.btn-wrap {
|
return `.btn-wrap {
|
||||||
|
|||||||
Reference in New Issue
Block a user