fork from bc4552c5a8
This commit is contained in:
32
client/containers/Group/GroupLog/GroupLog.js
Normal file
32
client/containers/Group/GroupLog/GroupLog.js
Normal file
@@ -0,0 +1,32 @@
|
||||
import React, { PureComponent as 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;
|
||||
Reference in New Issue
Block a user