import React, { Component } from 'react'; import { Redirect } from 'react-router'; import PropTypes from 'prop-types'; import { CircularProgress } from 'material-ui/Progress'; import './TPMShixunDiscuss.css' import ShixunDiscuss from './shixunchild/ShixunDiscuss/ShixunDiscuss' import TPMRightSection from './component/TPMRightSection' import TPMNav from './component/TPMNav' import Comments from '../comment/Comments' import { commentHOC } from '../comment/CommentsHOC' class TPMShixunDiscuss extends Component { constructor(props) { super(props) } componentWillReceiveProps(newProps, newContext) { } componentDidMount() { // TODO 加了HOC后 mount了两次 this.props.fetchCommentIfNotFetched && this.props.fetchCommentIfNotFetched(); } render() { const { loadingContent, creator, shixun, myshixun, recommend_shixuns, current_user, watched, aboutFocus, user, match } = this.props; return (
{ loadingContent ? : // onPaginationChange={this.onPaginationChange} // }
); } } export default commentHOC ( TPMShixunDiscuss );