diff options
author | Vitaly Takmazov | 2018-06-16 18:37:01 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2023-01-13 10:37:52 +0300 |
commit | 683bd826dfc3885a8f15f9db4e0a8af7f158c967 (patch) | |
tree | 6400e380b30a2686b38fd323250cf3c6ce5ee68a /vnext/src/components/Discover.js | |
parent | c754cbba643d7ea1e6312c685f4b321ab5efba6b (diff) |
loadReplies
Diffstat (limited to 'vnext/src/components/Discover.js')
-rw-r--r-- | vnext/src/components/Discover.js | 12 |
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 }; |