Merge pull request #987 from sharetribe/fix-booking-title

Fix wrong booking title on listing page
This commit is contained in:
Hannu Lyytikäinen 2018-12-27 11:43:41 +02:00 committed by GitHub
commit 7d64044711
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 20 additions and 4 deletions

View file

@ -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.

View file

@ -229,9 +229,8 @@ export class ListingPageComponent extends Component {
</span>
);
const bookingTitle = intl.formatMessage(
{ id: 'ListingPage.bookingSubTitle' },
{ title: richTitle }
const bookingTitle = (
<FormattedMessage id="ListingPage.bookingTitle" values={{ title: richTitle }} />
);
const bookingSubTitle = intl.formatMessage({ id: 'ListingPage.bookingSubTitle' });

View file

@ -307,7 +307,22 @@ exports[`ListingPage matches snapshot 1`] = `
onSubmit={[Function]}
subTitle="ListingPage.bookingSubTitle"
timeSlots={null}
title="ListingPage.bookingSubTitle"
title={
<FormattedMessage
id="ListingPage.bookingTitle"
values={
Object {
"title": <span>
listing1
title
</span>,
}
}
/>
}
unitType="line-item/night"
/>
</div>