Skip to content

Commit

Permalink
fixing issues #23
Browse files Browse the repository at this point in the history
  • Loading branch information
Mireia committed Apr 16, 2016
1 parent 29cf4c5 commit 5051600
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions frontend/src/js/components/RoleModal/role.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react'
import {Button, Modal} from 'react-bootstrap'

const CandidateProfileModal = React.createClass({
const Role = React.createClass({
close () {
this.props.changeState({ showModal: false })
},
Expand Down Expand Up @@ -36,17 +36,17 @@ const CandidateProfileModal = React.createClass({

})

CandidateProfileModal.propTypes = {
Role.propTypes = {
host: React.PropTypes.string.isRequired,
description: React.PropTypes.string.isRequired,
applicants: React.PropTypes.string.isRequired
}

CandidateProfileModal.defaultProps = {
Role.defaultProps = {
'host': 'hostUUID',
'description': 'You would be helping us make websites for people',
'applicants': ['candidateUUID1', 'candidateUUID2', 'candidateUUID3']
}

export default CandidateProfileModal
export default Role

4 changes: 2 additions & 2 deletions frontend/src/js/views/Candidate/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React, {Component} from 'react'
import List from '../../components/List'
import {candidates, roles} from '../../../../../database.js'
import CandidateProfileModal from '../../components/CandidateProfile/CandidateProfileModal.js'
import RoleModal from '../../components/RoleModal/role.js'

export default class CandidateView extends Component {
constructor () {
Expand All @@ -16,7 +16,7 @@ export default class CandidateView extends Component {
return (
<div>
<List candidates={this.state.candidates} roles={this.state.candidates} changeState={this.changeState} />
<CandidateProfileModal changeState={this.changeState} showModal={this.state.showModal} currentRole={this.state.currentRole}/>
<RoleModal changeState={this.changeState} showModal={this.state.showModal} currentRole={this.state.currentRole}/>
</div>
)
}
Expand Down

0 comments on commit 5051600

Please sign in to comment.