2017-07-11 19:12:13 +08:00
|
|
|
import React, { Component } from 'react'
|
2017-07-13 20:09:04 +08:00
|
|
|
import PropTypes from 'prop-types'
|
2017-07-20 15:38:25 +08:00
|
|
|
import { Link } from 'react-router-dom'
|
2017-07-11 19:12:13 +08:00
|
|
|
|
|
|
|
class InterfaceList extends Component {
|
2017-07-13 20:09:04 +08:00
|
|
|
static propTypes = {
|
2017-07-14 11:27:34 +08:00
|
|
|
projectMember: PropTypes.func
|
2017-07-13 20:09:04 +08:00
|
|
|
}
|
|
|
|
|
2017-07-11 19:12:13 +08:00
|
|
|
constructor(props) {
|
|
|
|
super(props)
|
|
|
|
}
|
|
|
|
|
|
|
|
render () {
|
2017-07-13 20:09:04 +08:00
|
|
|
const { projectMember } = this.props
|
|
|
|
|
2017-07-11 19:12:13 +08:00
|
|
|
return (
|
|
|
|
<ul className="interface-list">
|
2017-07-20 15:38:25 +08:00
|
|
|
<li><Link to="/AddInterface">添加接口</Link></li>
|
2017-07-13 20:09:04 +08:00
|
|
|
<li onClick={projectMember}>管理项目成员</li>
|
2017-07-11 19:12:13 +08:00
|
|
|
</ul>
|
|
|
|
)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
export default InterfaceList
|