Skip to content

Commit

Permalink
don't try to handle the top level loading state differently (for now?)
Browse files Browse the repository at this point in the history
  • Loading branch information
brumm committed Apr 10, 2020
1 parent 89a47a2 commit c146370
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions src/components/Listing.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import { useIdleCallback } from '@/hooks'
import { useStore } from '@/storage'
import { getNode } from '@/api'
import { prefetchQuery } from '@/utils'
import Loading from '@/components/Loading'
import Node from '@/components/Node'

const Listing = ({ path, parentCommitmessage, level = 0 }) => {
Expand All @@ -26,23 +25,6 @@ const Listing = ({ path, parentCommitmessage, level = 0 }) => {
}, [status, branch, data, user, repo])

if (status === 'loading') {
if (level === 0) {
return (
<div
style={{
position: 'absolute',
display: 'flex',
alignItems: 'center',
justifyContent: 'center',
width: '100%',
height: '100%',
}}
>
<Loading />
</div>
)
}

return null
}

Expand Down

0 comments on commit c146370

Please sign in to comment.