diff --git a/src/containers/ListingPage/ListingPage.js b/src/containers/ListingPage/ListingPage.js index d77710c6..3c28e9ac 100644 --- a/src/containers/ListingPage/ListingPage.js +++ b/src/containers/ListingPage/ListingPage.js @@ -84,6 +84,14 @@ const ActionBar = props => { } }; +const { arrayOf, bool, func, instanceOf, number, object, oneOf, shape, string } = PropTypes; + +ActionBar.propTypes = { + isOwnListing: bool.isRequired, + isClosed: bool.isRequired, + editParams: object.isRequired, +} + // TODO: price unit (per x), custom fields, contact, reviews // N.B. All the presentational content needs to be extracted to their own components export class ListingPageComponent extends Component { @@ -392,8 +400,6 @@ ListingPageComponent.defaultProps = { tab: 'listing', }; -const { arrayOf, bool, func, instanceOf, number, object, oneOf, shape, string } = PropTypes; - ListingPageComponent.propTypes = { // from withRouter history: shape({