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 React, { cloneElement, PropTypes } from 'react';
|
||||||
import { contain } from 'thundercats-react';
|
import { contain } from 'thundercats-react';
|
||||||
import { Button, Jumbotron, Row } from 'react-bootstrap';
|
import { Button, Jumbotron, Row } from 'react-bootstrap';
|
||||||
import ShowJobs from './Show.jsx';
|
import ListJobs from './List.jsx';
|
||||||
|
|
||||||
export default contain(
|
export default contain(
|
||||||
{
|
{
|
||||||
@ -15,9 +15,9 @@ export default contain(
|
|||||||
jobs: PropTypes.array
|
jobs: PropTypes.array
|
||||||
},
|
},
|
||||||
|
|
||||||
renderShow(jobs) {
|
renderList(jobs) {
|
||||||
return (
|
return (
|
||||||
<ShowJobs jobs={ jobs }/>
|
<ListJobs jobs={ jobs }/>
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
|
|
||||||
@ -53,7 +53,7 @@ export default contain(
|
|||||||
</Row>
|
</Row>
|
||||||
<Row>
|
<Row>
|
||||||
{ this.renderChild(children, jobs) ||
|
{ this.renderChild(children, jobs) ||
|
||||||
this.renderShow(jobs) }
|
this.renderList(jobs) }
|
||||||
</Row>
|
</Row>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
@ -7,7 +7,7 @@ export default contain(
|
|||||||
{
|
{
|
||||||
},
|
},
|
||||||
React.createClass({
|
React.createClass({
|
||||||
displayName: 'ShowJobs',
|
displayName: 'ListJobs',
|
||||||
|
|
||||||
propTypes: {
|
propTypes: {
|
||||||
jobs: PropTypes.array
|
jobs: PropTypes.array
|
Reference in New Issue
Block a user