yapi/client/containers/Interface/InterfaceList/InterfaceList.js
2017-07-20 15:38:25 +08:00

26 lines
546 B
JavaScript

import React, { Component } from 'react'
import PropTypes from 'prop-types'
import { Link } from 'react-router-dom'
class InterfaceList extends Component {
static propTypes = {
projectMember: PropTypes.func
}
constructor(props) {
super(props)
}
render () {
const { projectMember } = this.props
return (
<ul className="interface-list">
<li><Link to="/AddInterface">添加接口</Link></li>
<li onClick={projectMember}>管理项目成员</li>
</ul>
)
}
}
export default InterfaceList