link job in list to show job view

This commit is contained in:
Berkeley Martinez
2015-09-08 15:04:15 -07:00
parent e3ac50a0d5
commit 8112702e81

View File

@ -1,4 +1,5 @@
import React, { PropTypes } from 'react'; import React, { PropTypes } from 'react';
import { Link } from 'react-router';
import { PanelGroup, Thumbnail, Panel, Well } from 'react-bootstrap'; import { PanelGroup, Thumbnail, Panel, Well } from 'react-bootstrap';
import moment from 'moment'; import moment from 'moment';
@ -46,6 +47,7 @@ export default React.createClass({
eventKey={ index } eventKey={ index }
header={ header } header={ header }
key={ id }> key={ id }>
<Link to={ `/jobs/${id}` }>
<Well> <Well>
<Thumbnail <Thumbnail
alt={ company + 'company logo' } alt={ company + 'company logo' }
@ -61,6 +63,7 @@ export default React.createClass({
</Panel> </Panel>
<p>{ description }</p> <p>{ description }</p>
</Well> </Well>
</Link>
</Panel> </Panel>
); );
}); });