aboutsummaryrefslogtreecommitdiff
path: root/vnext/src/components/Discover.js
diff options
context:
space:
mode:
Diffstat (limited to 'vnext/src/components/Discover.js')
-rw-r--r--vnext/src/components/Discover.js12
1 files changed, 2 insertions, 10 deletions
diff --git a/vnext/src/components/Discover.js b/vnext/src/components/Discover.js
index daf2902f..fc1ab707 100644
--- a/vnext/src/components/Discover.js
+++ b/vnext/src/components/Discover.js
@@ -3,7 +3,7 @@ import React from 'react';
import PropTypes from 'prop-types';
import Message from './Message';
-import Icon from './Icon';
+import Spinner from './Spinner';
export default class Discover extends React.Component {
constructor(props) {
@@ -43,18 +43,10 @@ export default class Discover extends React.Component {
});
return this.state.msgs.length > 0 ? (
<div className="msgs" id="content">{nodes}</div>
- ) : (
- <div id="content" style={centeredStyle}><Icon name="ei-spinner" size="m"/></div>
- );
+ ) : <Spinner />;
}
}
-const centeredStyle = {
- display: 'flex',
- justifyContent: 'center',
- alignItems: 'center'
-}
-
Discover.propTypes = {
msgs: PropTypes.array
};