2020-08-17 21:07:16 +01:00
|
|
|
import React from 'react'
|
2020-08-17 21:59:29 +01:00
|
|
|
import PropTypes from 'prop-types'
|
2020-07-25 01:06:21 +01:00
|
|
|
import PopoverLayout from './popover_layout'
|
2020-07-21 22:48:55 +01:00
|
|
|
import ColumnIndicator from '../column_indicator'
|
|
|
|
|
2020-08-19 01:22:15 +01:00
|
|
|
class ErrorPopover extends React.PureComponent {
|
2020-07-25 01:06:21 +01:00
|
|
|
|
2020-07-21 22:48:55 +01:00
|
|
|
render() {
|
2020-07-25 01:06:21 +01:00
|
|
|
const { isXS } = this.props
|
|
|
|
|
2020-07-21 22:48:55 +01:00
|
|
|
return (
|
2020-07-25 01:06:21 +01:00
|
|
|
<PopoverLayout
|
|
|
|
width={250}
|
|
|
|
isXS={isXS}
|
|
|
|
onClose={this.props.onClose}
|
|
|
|
>
|
2020-08-18 21:49:11 +01:00
|
|
|
<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(' ')}>
|
2020-07-21 22:48:55 +01:00
|
|
|
<ColumnIndicator type='error' message='Error loading popover' />
|
|
|
|
</div>
|
|
|
|
</div>
|
2020-07-25 01:06:21 +01:00
|
|
|
</PopoverLayout>
|
2020-07-21 22:48:55 +01:00
|
|
|
)
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
2020-08-19 01:22:15 +01:00
|
|
|
|
|
|
|
ErrorPopover.defaultProps = {
|
|
|
|
isXS: PropTypes.bool,
|
|
|
|
onClose: PropTypes.func,
|
|
|
|
}
|
|
|
|
|
|
|
|
export default ErrorPopover
|