1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-12 21:30:39 +00:00
Files
seahub/frontend/src/components/empty-tip.js
llj 6f241904d3 [my deleted libraries] redesigned it (#6426)
* [my deleted libraries] redesigned it

* moved the entrance from the right corner to the left dropdown menu of
'My Libraries' page
* redesigned it: changed it from an independent page to a dialog

* [my deleted libraries] improved UI details for the dialog(repo list & empty tip)
2024-07-27 15:41:38 +08:00

27 lines
657 B
JavaScript

import React from 'react';
import PropTypes from 'prop-types';
import { mediaUrl } from '../utils/constants';
const propTypes = {
forDialog: PropTypes.bool,
children: PropTypes.any,
className: PropTypes.string
};
class EmptyTip extends React.Component {
render() {
const { className } = this.props;
return (
<div className={this.props.forDialog ? `${className || '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;