1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-21 11:27:18 +00:00

Repair eslint wraning (#2453)

This commit is contained in:
山水人家
2018-10-16 18:19:51 +08:00
committed by Daniel Pan
parent 80b7e562a0
commit fdbb39a6d3
43 changed files with 498 additions and 264 deletions

View File

@@ -1,7 +1,16 @@
import React from 'react';
import PropTypes from 'prop-types';
import { siteRoot, gettext } from '../../utils/constants';
import { Link } from '@reach/router';
const propTypes = {
currentTab: PropTypes.string.isRequired,
children: PropTypes.oneOfType([
PropTypes.array,
PropTypes.object
]).isRequired,
};
class DraftsView extends React.Component {
constructor(props) {
@@ -14,7 +23,7 @@ class DraftsView extends React.Component {
tabItemClick = (param) => {
this.setState({
currentTab: param
})
});
}
render() {
@@ -40,4 +49,6 @@ class DraftsView extends React.Component {
}
}
DraftsView.propTypes = propTypes;
export default DraftsView;