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>
|
||||
]
|
||||
</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>
|
||||
|
||||
@@ -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}>
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -1399,7 +1399,7 @@ export const TopBar = styled.div`
|
||||
}
|
||||
}
|
||||
|
||||
${({ selectedStyle }) => {
|
||||
${({ selectedStyle }) => {
|
||||
switch (selectedStyle) {
|
||||
case 'Yotsuba':
|
||||
return `.btn-wrap {
|
||||
|
||||
Reference in New Issue
Block a user