import React, { PropTypes } from 'react'; import { contain } from 'thundercats-react'; import { Row, Thumbnail, Panel, Well } from 'react-bootstrap'; import moment from 'moment'; const thumbnailStyle = { backgroundColor: 'white', maxHeight: '100px', maxWidth: '100px' }; export default contain( { store: 'jobsStore', fetchAction: 'jobActions.getJob', map({ currentJob }) { return { job: currentJob }; }, getPayload({ params: { id }, job = {} }) { return { id, isPrimed: job.id === id }; }, // using es6 destructuring shouldContainerFetch({ job = {} }, { params: { id } } ) { return job.id !== id; } }, React.createClass({ displayName: 'ShowJob', propTypes: { job: PropTypes.object, params: PropTypes.object }, renderHeader({ company, position }) { return (
{ description }