Browse Source

Merge pull request #566 from valpinkman/feat/loader-app-screen

add loader in app screen
master
Gaëtan Renaudeau 7 years ago
committed by GitHub
parent
commit
b288a5f73d
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 7
      src/components/ManagerPage/AppsList.js

7
src/components/ManagerPage/AppsList.js

@ -15,6 +15,7 @@ import Modal, { ModalBody } from 'components/base/Modal'
import Tooltip from 'components/base/Tooltip'
import Text from 'components/base/Text'
import Progress from 'components/base/Progress'
import Spinner from 'components/base/Spinner'
import ExclamationCircle from 'icons/ExclamationCircle'
import Update from 'icons/Update'
@ -178,7 +179,7 @@ class AppsList extends PureComponent<Props, State> {
renderList() {
const { appsList } = this.state
return (
return appsList.length > 0 ? (
<Box>
<AppSearchBar list={appsList}>
{items => (
@ -198,6 +199,10 @@ class AppsList extends PureComponent<Props, State> {
</AppSearchBar>
{this.renderModal()}
</Box>
) : (
<Box align="center" justify="center">
<Spinner size={50} />
</Box>
)
}

Loading…
Cancel
Save