From 5d5c745c2a1d54ef62dd41e3e36e2d385d94af6a Mon Sep 17 00:00:00 2001 From: Jenni Nurmi Date: Wed, 23 Jan 2019 09:40:15 +0200 Subject: [PATCH 1/2] Add ownListing to listing prop type --- src/components/BookingPanel/BookingPanel.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/BookingPanel/BookingPanel.js b/src/components/BookingPanel/BookingPanel.js index ac4eb2e5..b8ff712c 100644 --- a/src/components/BookingPanel/BookingPanel.js +++ b/src/components/BookingPanel/BookingPanel.js @@ -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, From f8b125e462c5e3bf1de686c1e4b32455ee1e0223 Mon Sep 17 00:00:00 2001 From: Jenni Nurmi Date: Wed, 23 Jan 2019 11:47:19 +0200 Subject: [PATCH 2/2] Update changelog --- CHANGELOG.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 556189b3..06e77188 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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