import React, { Component } from 'react' import { connect } from 'react-redux'; import PropTypes from 'prop-types' import { Route, Switch, Redirect } from 'react-router-dom'; import { Subnav } from '../../components/index' import { getProject } from '../../reducer/modules/project'; import Interface from './Interface/Interface.js' import Activity from './Activity/Activity.js' import { Setting } from './Setting/Setting.js' @connect( state => { return { curProject: state.project.currProject } }, { getProject } ) export default class Project extends Component { static propTypes = { match: PropTypes.object, curProject: PropTypes.object, getProject: PropTypes.func } constructor(props) { super(props) } componentWillMount() { this.props.getProject(this.props.match.params.id) } render () { const { match } = this.props; return (
) } }