Add prop types for ActionBar

This commit is contained in:
Hannu Lyytikainen 2017-09-06 11:12:57 +03:00 committed by Kimmo Puputti
parent 5405eb82c4
commit 14cbe59843

View file

@ -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({