import React, { Component } from 'react' import { connect } from 'react-redux' import { history } from 'app/store' import actions from 'app/actions' import { Loader } from 'app/common' import ProjectForm from '../components/project.form' import ProjectMenu from '../components/project.menu' class ProjectEdit extends Component { componentDidMount() { console.log(this.props.match.params.id) actions.project.show(this.props.match.params.id) } handleSubmit(data) { actions.project.update(data) .then(response => { // response console.log(response) history.push('/') }) } render() { const { show } = this.props.project if (show.loading || !show.res) { return (