import React, { PropTypes } from 'react'; import { Row, Col, Thumbnail, Panel } from 'react-bootstrap'; import moment from 'moment'; const defaultImage = 'https://pbs.twimg.com/' + 'profile_images/562385977390272512/AK29YaTf_400x400.png'; const thumbnailStyle = { backgroundColor: 'white', maxHeight: '100px', maxWidth: '100px' }; export default React.createClass({ displayName: 'ShowJob', propTypes: { job: PropTypes.object, params: PropTypes.object }, renderHeader({ company, position }) { return (

{ company }

{ position }
); }, render() { const { job = {} } = this.props; const { logo, position, city, company, state, locale, email, phone, postedOn, description } = job; return (

{ company }

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

{ description }

); } });