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

{ company }

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

handleClick(id) }>{ description }

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