mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-04 16:31:13 +00:00
clean package.json and repair code style (#2411)
* clean package.json and repair code style * update css style * repair bug
This commit is contained in:
committed by
Daniel Pan
parent
3ab4cbff4f
commit
3a67d78016
@@ -1,4 +1,11 @@
|
||||
import React from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
|
||||
const itemPropTypes = {
|
||||
activeIndex: PropTypes.number.isRequired,
|
||||
item: PropTypes.object.isRequired,
|
||||
handleNavItemClick: PropTypes.func.isRequired,
|
||||
};
|
||||
|
||||
class WikiOutlineItem extends React.Component {
|
||||
|
||||
@@ -17,11 +24,18 @@ class WikiOutlineItem extends React.Component {
|
||||
<li className={clazz} data-index={item.key} onClick={this.handleNavItemClick}>
|
||||
<a href={item.id} title={item.text}>{item.text}</a>
|
||||
</li>
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
WikiOutlineItem.propTypes = itemPropTypes;
|
||||
|
||||
const outlinePropTypes = {
|
||||
navItems: PropTypes.array.isRequired,
|
||||
handleNavItemClick: PropTypes.func.isRequired,
|
||||
}
|
||||
|
||||
class WikiOutline extends React.Component {
|
||||
|
||||
constructor(props) {
|
||||
@@ -79,4 +93,6 @@ class WikiOutline extends React.Component {
|
||||
}
|
||||
}
|
||||
|
||||
WikiOutline.propTypes = outlinePropTypes;
|
||||
|
||||
export default WikiOutline;
|
||||
|
Reference in New Issue
Block a user