Skip to content

Commit

Permalink
fix: loading status
Browse files Browse the repository at this point in the history
Signed-off-by: Innei <i@innei.in>
  • Loading branch information
Innei committed Jul 16, 2024
1 parent fbd795d commit a8607a1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/renderer/src/modules/entry-column/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@ export function EntryColumn() {
>
<ListHeader
refetch={entries.refetch}
isRefreshing={entries.isFetching && !entries.isFetchingNextPage}
totalCount={virtuosoOptions.totalCount}
/>
<m.div
Expand Down Expand Up @@ -163,7 +164,8 @@ export function EntryColumn() {
const ListHeader: FC<{
totalCount: number
refetch: () => void
}> = ({ totalCount, refetch }) => {
isRefreshing: boolean
}> = ({ totalCount, refetch, isRefreshing }) => {
const routerParams = useRouteParms()

const unreadOnly = useGeneralSettingKey("unreadOnly")
Expand Down Expand Up @@ -289,7 +291,7 @@ const ListHeader: FC<{
<i
className={cn(
"i-mgc-refresh-2-cute-re",
isPending && "animate-spin",
isRefreshing && "animate-spin",
)}
/>
</ActionButton>
Expand Down

0 comments on commit a8607a1

Please sign in to comment.