yapi/client/containers/Group/GroupLog/GroupLog.js
2017-09-26 17:17:22 +08:00

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;