Merge pull request #1007 from sharetribe/fix-invalid-proptype-in-booking-panel

Add ownListing to listing prop type
This commit is contained in:
Jenni Nurmi 2019-01-23 12:52:54 +02:00 committed by GitHub
commit 499417fe45
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View file

@ -14,6 +14,8 @@ way to update this template, but currently, we follow a pattern:
## Upcoming version 2019-XX-XX
- [fix] Allow ownListing as listing proptype in BookingPanel component.
[#1007](https://github.com/sharetribe/flex-template-web/pull/1007)
- [add] Add info text about additional owners to `PayoutDetailsForm`.
[#1006](https://github.com/sharetribe/flex-template-web/pull/1006)
- [change] Default to English translation if the translation key is missing. After this update, new

View file

@ -168,7 +168,7 @@ BookingPanel.propTypes = {
rootClassName: string,
className: string,
titleClassName: string,
listing: propTypes.listing.isRequired,
listing: oneOfType([propTypes.listing, propTypes.ownListing]),
isOwnListing: bool,
unitType: propTypes.bookingUnitType,
onSubmit: func.isRequired,