2019-06-10 09:30:10 +00:00
|
|
|
import React from 'react';
|
|
|
|
import PropTypes from 'prop-types';
|
|
|
|
import { mediaUrl } from '../utils/constants';
|
|
|
|
|
2020-11-02 05:56:35 +00:00
|
|
|
const propTypes = {
|
2020-03-11 03:10:48 +00:00
|
|
|
forDialog: PropTypes.bool
|
2020-03-10 04:00:31 +00:00
|
|
|
};
|
|
|
|
|
2019-06-10 09:30:10 +00:00
|
|
|
class EmptyTip extends React.Component {
|
|
|
|
|
|
|
|
render() {
|
|
|
|
return (
|
2020-03-10 04:00:31 +00:00
|
|
|
<div className={this.props.forDialog ? 'text-center mt-8' : 'empty-tip'}>
|
2019-06-12 10:37:11 +00:00
|
|
|
<img src={`${mediaUrl}img/no-items-tip.png`} alt="" width="100" height="100" className="no-items-img-tip" />
|
2019-06-10 09:30:10 +00:00
|
|
|
{this.props.children}
|
|
|
|
</div>
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-03-10 04:00:31 +00:00
|
|
|
EmptyTip.propTypes = propTypes;
|
|
|
|
|
2019-06-10 09:30:10 +00:00
|
|
|
export default EmptyTip;
|