Browse Source

add loader in app screen

master
Valentin D. Pinkman 7 years ago
parent
commit
2378cd8f19
No known key found for this signature in database GPG Key ID: E7D110669FFB8D3E
  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