import React, { PropTypes } from 'react'; import { contain } from 'thundercats-react'; import { Accordion, Thumbnail, Panel, Well } from 'react-bootstrap'; import moment from 'moment'; export default contain( { }, React.createClass({ displayName: 'ShowJobs', propTypes: { jobs: PropTypes.array }, renderJobs(jobs =[]) { const thumbnailStyle = { backgroundColor: 'white', maxHeight: '200px', maxWidth: '200px' }; return jobs.map(( { id, company, position, description, logo, city, state, email, phone, postedOn }, index ) => { const header = (

{ company }

{ position }
); return ( Location: { city }, { state }
Contact: { email || phone || 'N/A' }
Posted On: { moment(postedOn).format('MMMM Do, YYYY') }

{ description }

); }); }, render() { const { jobs } = this.props; return ( { this.renderJobs(jobs) } ); } }) );