mock平台

GroupLog.js 780B

123456789101112131415161718192021222324252627282930313233
  1. import React, { PureComponent as Component } from 'react';
  2. import TimeTree from '../../../components/TimeLine/TimeLine';
  3. import { connect } from 'react-redux';
  4. import PropTypes from 'prop-types';
  5. // import { Button } from 'antd'
  6. @connect(state => {
  7. return {
  8. uid: state.user.uid + '',
  9. curGroupId: state.group.currGroup._id
  10. };
  11. })
  12. class GroupLog extends Component {
  13. constructor(props) {
  14. super(props);
  15. }
  16. static propTypes = {
  17. uid: PropTypes.string,
  18. match: PropTypes.object,
  19. curGroupId: PropTypes.number
  20. };
  21. render() {
  22. return (
  23. <div className="g-row">
  24. <section className="news-box m-panel">
  25. <TimeTree type={'group'} typeid={this.props.curGroupId} />
  26. </section>
  27. </div>
  28. );
  29. }
  30. }
  31. export default GroupLog;