Skip to content
This repository has been archived by the owner on May 28, 2018. It is now read-only.

Commit

Permalink
Remove application detail from comittee answer form
Browse files Browse the repository at this point in the history
  • Loading branch information
nbrohee committed Aug 7, 2017
1 parent a2c7751 commit 0eb6695
Showing 1 changed file with 4 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,24 +78,13 @@ class CommitteeAnswerPage extends React.Component {
return (
<div className="container back-content">
<div className="page-header">
<h1>Avis du comité d'engagement</h1>
<h1>Avis du comité d'engagement pour {this.props.applicantFirstname}</h1>
</div>
<CommitteeAnswerForm
committeeAnswer={this.state.committeeAnswer}
onChange={this.updateCommitteeAnswerState}
errors={this.state.errors}
saveAnswer={this.saveAnswer} />
<div className="panel panel-default committee-panel">
<div className="panel-heading">Candidature</div>
<div className="panel-body">
<ContactPage />
<TeamPage />
<ProjectPage />
<PepitePage />
<CareerPage />
<ProfilePage />
</div>
</div>
</div>
)
}
Expand All @@ -104,7 +93,8 @@ class CommitteeAnswerPage extends React.Component {
function mapStateToProps(state, ownProps) {
return {
applicationId: ownProps.params.id,
committeeAnswer: state.committeeAnswer
committeeAnswer: state.committeeAnswer,
applicantFirstname: `${state.contact.firstname} ${state.contact.name}`
}
}

Expand All @@ -119,6 +109,7 @@ CommitteeAnswerPage.propTypes = {
actions: PropTypes.object.isRequired,
committeeAnswerActions: PropTypes.object.isRequired,
committeeAnswer: PropTypes.object.isRequired,
applicantFullname: PropTypes.string.isRequired,
applicationId: PropTypes.string
}

Expand Down

0 comments on commit 0eb6695

Please sign in to comment.