Add more conditional logic to button

This commit is contained in:
Berkeley Martinez
2015-11-04 21:37:15 -08:00
parent feac941b1c
commit 0a30ad3fb4

View File

@ -289,14 +289,16 @@ export default contain({
<Row> <Row>
<Button <Button
className={ isFrontEndCert ? 'active' : '' } className={ isFrontEndCert ? 'active' : '' }
onClick={ () => this.handleCertClick( onClick={ () => {
'isFrontEndCert' if (!isFrontEndCert) {
)}> this.handleCertClick('isFrontEndCert');
}
}}>
<h4>Front End Development Certified</h4> <h4>Front End Development Certified</h4>
You can expect each applicant You can expect each applicant
to have a code portfolio using the to have a code portfolio using the
following technologies: following technologies:
HTML5, CSS, jQuery, API integrations, MVC Framework HTML5, CSS, jQuery, API integrations
<br /> <br />
<br /> <br />
</Button> </Button>
@ -305,9 +307,11 @@ export default contain({
<Row> <Row>
<Button <Button
className={ isFullStackCert ? 'active' : ''} className={ isFullStackCert ? 'active' : ''}
onClick={ () => this.handleCertClick( onClick={ () => {
'isFullStackCert' if (!isFullStackCert) {
)}> this.handleCertClick('isFullStackCert');
}
}}>
<h4>Full Stack Development Certified</h4> <h4>Full Stack Development Certified</h4>
You can expect each applicant to have a code You can expect each applicant to have a code
portfolio using the following technologies: portfolio using the following technologies: