diff --git a/common/app/routes/Jobs/components/NewJob.jsx b/common/app/routes/Jobs/components/NewJob.jsx index ed4aca7276..3c2c16bf37 100644 --- a/common/app/routes/Jobs/components/NewJob.jsx +++ b/common/app/routes/Jobs/components/NewJob.jsx @@ -143,7 +143,7 @@ export default contain({ // sanitize user output const jobValues = { position: inHTMLData(position.value), - location: inHTMLData(locale.value), + locale: inHTMLData(locale.value), description: inHTMLData(description.value), email: inHTMLData(email.value), phone: inHTMLData(phone.value), diff --git a/common/app/routes/Jobs/components/Preview.jsx b/common/app/routes/Jobs/components/Preview.jsx index 5b6081be5c..7f7728c847 100644 --- a/common/app/routes/Jobs/components/Preview.jsx +++ b/common/app/routes/Jobs/components/Preview.jsx @@ -1,4 +1,6 @@ -// import React, { PropTypes } from 'react'; +import React, { PropTypes } from 'react'; +import { History } from 'react-router'; +import { Well, Button, Row } from 'react-bootstrap'; import { contain } from 'thundercats-react'; import ShowJob from './ShowJob.jsx'; @@ -10,5 +12,37 @@ export default contain( return { job }; } }, - ShowJob + React.createClass({ + displayName: 'Preview', + + mixins: [History], + + propTypes: { + job: PropTypes.object + }, + + render() { + const { job } = this.props; + const { history } = this; + return ( +