2018-11-26 17:53:18 +08:00
|
|
|
import React from 'react';
|
2018-10-16 18:19:51 +08:00
|
|
|
import PropTypes from 'prop-types';
|
2019-03-05 15:37:51 +08:00
|
|
|
import { gettext } from '../../utils/constants';
|
2018-09-15 16:14:17 +08:00
|
|
|
|
2018-10-16 18:19:51 +08:00
|
|
|
const propTypes = {
|
|
|
|
children: PropTypes.oneOfType([
|
|
|
|
PropTypes.array,
|
|
|
|
PropTypes.object
|
|
|
|
]).isRequired,
|
|
|
|
};
|
|
|
|
|
2018-09-21 14:16:15 +08:00
|
|
|
class DraftsView extends React.Component {
|
2018-09-15 16:14:17 +08:00
|
|
|
render() {
|
|
|
|
return (
|
2018-11-26 17:53:18 +08:00
|
|
|
<div className="main-panel-center">
|
|
|
|
<div className="cur-view-container">
|
2019-03-05 15:37:51 +08:00
|
|
|
<div className="cur-view-path">
|
|
|
|
<div className="path-container">
|
|
|
|
<h3 className="sf-heading">{gettext('Drafts')}</h3>
|
|
|
|
</div>
|
2018-11-26 14:00:32 +08:00
|
|
|
</div>
|
2018-11-26 17:53:18 +08:00
|
|
|
{this.props.children}
|
2018-11-26 14:00:32 +08:00
|
|
|
</div>
|
2018-11-26 17:53:18 +08:00
|
|
|
</div>
|
2018-09-15 16:14:17 +08:00
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-10-16 18:19:51 +08:00
|
|
|
DraftsView.propTypes = propTypes;
|
|
|
|
|
2018-10-15 15:51:29 +08:00
|
|
|
export default DraftsView;
|