Skip to content

Commit

Permalink
Merge pull request #617 from subquery/fix/loading-status
Browse files Browse the repository at this point in the history
fix: loading status
  • Loading branch information
HuberTRoy authored Dec 13, 2023
2 parents 68c9a66 + b68cfdf commit 370280e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/hooks/useProjectList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,9 @@ export const useProjectList = (props: UseProjectListProps = {}) => {
/>
))
: // TODO: update UI
'No Projects'}
loading
? ''
: 'No projects'}
{loading &&
new Array(projects.length + 10 <= total ? 10 : total - projects.length).fill(0).map((_, i) => {
return <Skeleton paragraph={{ rows: 7 }} active key={i} style={{ width: 236, height: 400 }}></Skeleton>;
Expand Down

0 comments on commit 370280e

Please sign in to comment.