mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-21 11:27:18 +00:00
32 lines
711 B
JavaScript
32 lines
711 B
JavaScript
import React from 'react';
|
|
import PropTypes from 'prop-types';
|
|
import { gettext } from '../../utils/constants';
|
|
|
|
const propTypes = {
|
|
children: PropTypes.oneOfType([
|
|
PropTypes.array,
|
|
PropTypes.object
|
|
]).isRequired,
|
|
};
|
|
|
|
class DraftsView extends React.Component {
|
|
render() {
|
|
return (
|
|
<div className="main-panel-center">
|
|
<div className="cur-view-container">
|
|
<div className="cur-view-path">
|
|
<div className="path-container">
|
|
<h3 className="sf-heading">{gettext('Drafts')}</h3>
|
|
</div>
|
|
</div>
|
|
{this.props.children}
|
|
</div>
|
|
</div>
|
|
);
|
|
}
|
|
}
|
|
|
|
DraftsView.propTypes = propTypes;
|
|
|
|
export default DraftsView;
|