mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-14 14:21:23 +00:00
[share links admin dialog] added 'empty tip' (#4474)
This commit is contained in:
@@ -2,11 +2,16 @@ import React from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import { mediaUrl } from '../utils/constants';
|
||||
|
||||
const propTypes = {
|
||||
forDialog: PropTypes.bool,
|
||||
children: PropTypes.object.isRequired
|
||||
};
|
||||
|
||||
class EmptyTip extends React.Component {
|
||||
|
||||
render() {
|
||||
return (
|
||||
<div className="empty-tip">
|
||||
<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>
|
||||
@@ -14,4 +19,6 @@ class EmptyTip extends React.Component {
|
||||
}
|
||||
}
|
||||
|
||||
EmptyTip.propTypes = propTypes;
|
||||
|
||||
export default EmptyTip;
|
||||
|
Reference in New Issue
Block a user