From 14cbe59843d052bff13e06f634f3f5efa0ccedc8 Mon Sep 17 00:00:00 2001 From: Hannu Lyytikainen Date: Wed, 6 Sep 2017 11:12:57 +0300 Subject: [PATCH] Add prop types for ActionBar --- src/containers/ListingPage/ListingPage.js | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) 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({