mirror of
https://github.com/astuto/astuto.git
synced 2025-12-15 11:17:49 +01:00
Fix flickering caused by turbolinks and other minor fixes
This commit is contained in:
@@ -50,7 +50,10 @@ const PostList = ({
|
||||
/>
|
||||
))
|
||||
:
|
||||
!areLoading ? <span className="infoText text-muted">There are no posts.</span> : null
|
||||
areLoading ?
|
||||
<span className="infoText">Loading...</span>
|
||||
:
|
||||
<span className="infoText text-muted">There are no posts.</span>
|
||||
}
|
||||
</InfiniteScroll>
|
||||
</div>
|
||||
|
||||
@@ -24,9 +24,6 @@ const PostStatusFilter = ({
|
||||
}: Props) => (
|
||||
<div className="box sidebar-box postStatusFilterContainer">
|
||||
<span className="smallTitle">Filter by post status:</span>
|
||||
|
||||
{ areLoading ? <Spinner /> : null }
|
||||
{ error ? <span className="error">{error}</span> : null }
|
||||
{
|
||||
postStatuses.map((postStatus, i) => (
|
||||
<PostStatusListItem
|
||||
@@ -41,6 +38,8 @@ const PostStatusFilter = ({
|
||||
/>
|
||||
))
|
||||
}
|
||||
{ areLoading ? <Spinner /> : null }
|
||||
{ error ? <span className="error">{error}</span> : null }
|
||||
</div>
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user