From 2c3bb15355385294185bf4111f1646a0075dbe27 Mon Sep 17 00:00:00 2001 From: Hannu Lyytikainen Date: Thu, 27 Dec 2018 11:31:18 +0200 Subject: [PATCH 1/2] Fix wrong booking title on listing page --- src/containers/ListingPage/ListingPage.js | 5 ++--- .../__snapshots__/ListingPage.test.js.snap | 17 ++++++++++++++++- 2 files changed, 18 insertions(+), 4 deletions(-) diff --git a/src/containers/ListingPage/ListingPage.js b/src/containers/ListingPage/ListingPage.js index 304549a889..9fa61c00b7 100644 --- a/src/containers/ListingPage/ListingPage.js +++ b/src/containers/ListingPage/ListingPage.js @@ -229,9 +229,8 @@ export class ListingPageComponent extends Component { ); - const bookingTitle = intl.formatMessage( - { id: 'ListingPage.bookingSubTitle' }, - { title: richTitle } + const bookingTitle = ( + ); const bookingSubTitle = intl.formatMessage({ id: 'ListingPage.bookingSubTitle' }); diff --git a/src/containers/ListingPage/__snapshots__/ListingPage.test.js.snap b/src/containers/ListingPage/__snapshots__/ListingPage.test.js.snap index 03d7922570..1962c361a1 100644 --- a/src/containers/ListingPage/__snapshots__/ListingPage.test.js.snap +++ b/src/containers/ListingPage/__snapshots__/ListingPage.test.js.snap @@ -307,7 +307,22 @@ exports[`ListingPage matches snapshot 1`] = ` onSubmit={[Function]} subTitle="ListingPage.bookingSubTitle" timeSlots={null} - title="ListingPage.bookingSubTitle" + title={ + + + listing1 + + title + + , + } + } + /> + } unitType="line-item/night" /> From 44214109902889938168f2ba00d2017beeb4a0fe Mon Sep 17 00:00:00 2001 From: Hannu Lyytikainen Date: Thu, 27 Dec 2018 11:38:34 +0200 Subject: [PATCH 2/2] Update changelog --- CHANGELOG.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index a2e2390e30..1c95b65312 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,6 +14,8 @@ way to update this template, but currently, we follow a pattern: ## Upcoming version 2018-XX-XX +- [fix] Fix wrong booking title on listing page that has been introduced in #969. + [#987](https://github.com/sharetribe/flex-template-web/pull/987) - [fix] yarn.lock file was not up to date [#986](https://github.com/sharetribe/flex-template-web/pull/986) - [add] Add an image of fork button to the deploy to production guide.