yapi/client/containers/Project/Setting/Setting.js

27 lines
768 B
JavaScript
Raw Normal View History

2017-08-17 12:09:08 +08:00
import React, { Component } from 'react'
2017-08-18 11:39:08 +08:00
import { Tabs } from 'antd';
2017-08-17 14:35:00 +08:00
import PropTypes from 'prop-types';
2017-08-18 11:39:08 +08:00
const TabPane = Tabs.TabPane;
import ProjectMessage from './ProjectMessage/ProjectMessage.js';
import ProjectMember from './ProjectMember/ProjectMember.js';
2017-08-17 22:19:58 +08:00
import './Setting.scss';
2017-08-17 12:09:08 +08:00
class Setting extends Component {
2017-08-17 14:35:00 +08:00
static propTypes = {
2017-08-18 11:39:08 +08:00
match: PropTypes.object
2017-08-17 14:35:00 +08:00
}
2017-08-17 12:09:08 +08:00
render () {
2017-08-18 11:39:08 +08:00
const id = this.props.match.params.id;
2017-08-17 12:09:08 +08:00
return (
2017-08-18 11:39:08 +08:00
<div className="g-row">
<Tabs type="card" className="m-tab">
<TabPane tab="项目信息" key="1"><ProjectMessage projectId={+id}/></TabPane>
<TabPane tab="成员列表" key="2"><ProjectMember projectId={+id}/></TabPane>
</Tabs>
2017-08-17 12:09:08 +08:00
</div>
)
}
}
2017-08-18 11:39:08 +08:00
export default Setting;