Fix some bugs with howToApply obscuring
This commit is contained in:
@ -30,12 +30,12 @@ function generateMessage(
|
|||||||
) {
|
) {
|
||||||
|
|
||||||
if (!isSignedIn) {
|
if (!isSignedIn) {
|
||||||
return 'Must be singed in to apply';
|
return 'Must be signed in to apply';
|
||||||
}
|
}
|
||||||
if (isFrontEndCertReq && !isFrontEndCert) {
|
if (isFrontEndCertReq && !isFrontEndCert) {
|
||||||
return 'Job requires applicant be Front End Certified';
|
return 'You must earn your Full Stack Certification to apply';
|
||||||
}
|
}
|
||||||
return 'Job requires applicant be Full Stack Certified';
|
return 'You must earn your Front End Certification to apply';
|
||||||
}
|
}
|
||||||
|
|
||||||
export default contain(
|
export default contain(
|
||||||
@ -43,8 +43,12 @@ export default contain(
|
|||||||
stores: ['appStore', 'jobsStore'],
|
stores: ['appStore', 'jobsStore'],
|
||||||
fetchWaitFor: 'jobsStore',
|
fetchWaitFor: 'jobsStore',
|
||||||
fetchAction: 'jobActions.getJob',
|
fetchAction: 'jobActions.getJob',
|
||||||
combineLatest({ isFrontEndCert, isFullStackCert }, { currentJob }) {
|
combineLatest(
|
||||||
|
{ username, isFrontEndCert, isFullStackCert },
|
||||||
|
{ currentJob }
|
||||||
|
) {
|
||||||
return {
|
return {
|
||||||
|
username,
|
||||||
job: currentJob,
|
job: currentJob,
|
||||||
isFrontEndCert,
|
isFrontEndCert,
|
||||||
isFullStackCert
|
isFullStackCert
|
||||||
|
@ -47,7 +47,7 @@ export default React.createClass({
|
|||||||
<Col
|
<Col
|
||||||
md={ 6 }
|
md={ 6 }
|
||||||
mdOffset={ 3 }>
|
mdOffset={ 3 }>
|
||||||
<h4>{ message }</h4>
|
<h4 className='bg-danger text-center'>{ message }</h4>
|
||||||
</Col>
|
</Col>
|
||||||
</Row>
|
</Row>
|
||||||
);
|
);
|
||||||
|
Reference in New Issue
Block a user