aboutsummaryrefslogtreecommitdiff
path: root/vnext/src/components/Discover.js
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2018-06-16 18:37:01 +0300
committerGravatar Vitaly Takmazov2023-01-13 10:37:52 +0300
commit683bd826dfc3885a8f15f9db4e0a8af7f158c967 (patch)
tree6400e380b30a2686b38fd323250cf3c6ce5ee68a /vnext/src/components/Discover.js
parentc754cbba643d7ea1e6312c685f4b321ab5efba6b (diff)
loadReplies
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
};