mirror of
https://github.com/YMFE/yapi.git
synced 2024-12-21 05:19:42 +08:00
36 lines
774 B
JavaScript
36 lines
774 B
JavaScript
import React, { Component } from 'react'
|
|
import TimeTree from '../../../components/TimeLine/TimeLine'
|
|
import { connect } from 'react-redux'
|
|
import PropTypes from 'prop-types'
|
|
// import { Button } from 'antd'
|
|
@connect(
|
|
state => {
|
|
return {
|
|
uid: state.user.uid + '',
|
|
curGroupId: state.group.currGroup._id
|
|
}
|
|
}
|
|
)
|
|
|
|
class GroupLog extends Component {
|
|
constructor(props) {
|
|
super(props);
|
|
}
|
|
static propTypes = {
|
|
uid: PropTypes.string,
|
|
match: PropTypes.object,
|
|
curGroupId: PropTypes.number
|
|
}
|
|
render () {
|
|
return (
|
|
<div className="g-row">
|
|
<section className="news-box m-panel">
|
|
<TimeTree type={"group"} typeid = {this.props.curGroupId} />
|
|
</section>
|
|
</div>
|
|
)
|
|
}
|
|
}
|
|
|
|
export default GroupLog;
|