rename show to list
fall inline with rest conventions
This commit is contained in:
@ -1,7 +1,7 @@
|
||||
import React, { cloneElement, PropTypes } from 'react';
|
||||
import { contain } from 'thundercats-react';
|
||||
import { Button, Jumbotron, Row } from 'react-bootstrap';
|
||||
import ShowJobs from './Show.jsx';
|
||||
import ListJobs from './List.jsx';
|
||||
|
||||
export default contain(
|
||||
{
|
||||
@ -15,9 +15,9 @@ export default contain(
|
||||
jobs: PropTypes.array
|
||||
},
|
||||
|
||||
renderShow(jobs) {
|
||||
renderList(jobs) {
|
||||
return (
|
||||
<ShowJobs jobs={ jobs }/>
|
||||
<ListJobs jobs={ jobs }/>
|
||||
);
|
||||
},
|
||||
|
||||
@ -53,7 +53,7 @@ export default contain(
|
||||
</Row>
|
||||
<Row>
|
||||
{ this.renderChild(children, jobs) ||
|
||||
this.renderShow(jobs) }
|
||||
this.renderList(jobs) }
|
||||
</Row>
|
||||
</div>
|
||||
);
|
||||
|
@ -7,7 +7,7 @@ export default contain(
|
||||
{
|
||||
},
|
||||
React.createClass({
|
||||
displayName: 'ShowJobs',
|
||||
displayName: 'ListJobs',
|
||||
|
||||
propTypes: {
|
||||
jobs: PropTypes.array
|
Reference in New Issue
Block a user