Gab-Social/app/javascript/gabsocial/components/popover/loading_popover.js
mgabdev 99982c0391 Finished updating the reformatting of propTypes and set redux, intl functions to end of component
• Finished:
- updating the reformatting of propTypes and set redux, intl functions to end of component

• Removed:
- Gif implementation
2020-08-18 19:22:15 -05:00

33 lines
805 B
JavaScript

import React from 'react'
import PropTypes from 'prop-types'
import PopoverLayout from './popover_layout'
import ColumnIndicator from '../column_indicator'
class LoadingPopover extends React.PureComponent {
render() {
const { isXS } = this.props
return (
<PopoverLayout
width={250}
isXS={isXS}
onClose={this.props.onClose}
>
<div className={[_s.d, _s.px15, _s.py15, _s.mt15, _s.mb15].join(' ')}>
<div className={[_s.d, _s.px15, _s.py15, _s.mt15, _s.mb15, _s.aiCenter, _s.jcCenter].join(' ')}>
<ColumnIndicator type='loading' />
</div>
</div>
</PopoverLayout>
)
}
}
LoadingPopover.defaultProps = {
isXS: PropTypes.bool,
onClose: PropTypes.func,
}
export default LoadingPopover