intermidiate save
This commit is contained in:
@ -2,6 +2,11 @@ import React, { PropTypes } from 'react';
|
||||
import { Thumbnail, Panel, Well } from 'react-bootstrap';
|
||||
import moment from 'moment';
|
||||
|
||||
const thumbnailStyle = {
|
||||
backgroundColor: 'white',
|
||||
maxHeight: '100px',
|
||||
maxWidth: '100px'
|
||||
};
|
||||
export default React.createClass({
|
||||
displayName: 'ShowJob',
|
||||
propTypes: {
|
||||
@ -22,28 +27,33 @@ export default React.createClass({
|
||||
},
|
||||
|
||||
render() {
|
||||
const { job } = this.props.job;
|
||||
const { job } = this.props;
|
||||
const {
|
||||
logo,
|
||||
position,
|
||||
city,
|
||||
state,
|
||||
email,
|
||||
phone,
|
||||
postedOn,
|
||||
description
|
||||
} = job;
|
||||
|
||||
return (
|
||||
<Panel
|
||||
collapsible={ true }
|
||||
header={ this.renderHeader() }
|
||||
key={ id }>
|
||||
<Well>
|
||||
<Thumbnail
|
||||
alt='200x200' src={ logo }
|
||||
style={ thumbnailStyle } />
|
||||
<Panel>
|
||||
Position: { position }
|
||||
Location: { city }, { state }
|
||||
<br />
|
||||
Contact: { email || phone || 'N/A' }
|
||||
<br />
|
||||
Posted On: { moment(postedOn).format('MMMM Do, YYYY') }
|
||||
</Panel>
|
||||
<p>{ description }</p>
|
||||
</Well>
|
||||
</Panel>
|
||||
<Well>
|
||||
<Thumbnail
|
||||
alt='200x200' src={ logo }
|
||||
style={ thumbnailStyle } />
|
||||
<Panel>
|
||||
Position: { position }
|
||||
Location: { city }, { state }
|
||||
<br />
|
||||
Contact: { email || phone || 'N/A' }
|
||||
<br />
|
||||
Posted On: { moment(postedOn).format('MMMM Do, YYYY') }
|
||||
</Panel>
|
||||
<p>{ description }</p>
|
||||
</Well>
|
||||
);
|
||||
}
|
||||
});
|
||||
|
Reference in New Issue
Block a user