link job in list to show job view
This commit is contained in:
@ -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>
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user