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