mirror of
https://github.com/haiwen/seahub.git
synced 2025-07-20 18:10:05 +00:00
* 01 fix eslint warnings * fix code warnings * fix code warnings * fix code warnings * fix code warnings * fix code warnings
25 lines
571 B
JavaScript
25 lines
571 B
JavaScript
import React from 'react';
|
|
import PropTypes from 'prop-types';
|
|
import { mediaUrl } from '../utils/constants';
|
|
|
|
const propTypes = {
|
|
forDialog: PropTypes.bool,
|
|
children: PropTypes.any,
|
|
};
|
|
|
|
class EmptyTip extends React.Component {
|
|
|
|
render() {
|
|
return (
|
|
<div className={this.props.forDialog ? 'text-center mt-8' : 'empty-tip'}>
|
|
<img src={`${mediaUrl}img/no-items-tip.png`} alt="" width="100" height="100" className="no-items-img-tip" />
|
|
{this.props.children}
|
|
</div>
|
|
);
|
|
}
|
|
}
|
|
|
|
EmptyTip.propTypes = propTypes;
|
|
|
|
export default EmptyTip;
|