Skip to content

Commit

Permalink
Merge pull request #987 from sharetribe/fix-booking-title
Browse files Browse the repository at this point in the history
Fix wrong booking title on listing page
  • Loading branch information
lyyder authored Dec 27, 2018
2 parents 4f489ea + 4421410 commit 7d64044
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 4 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
5 changes: 2 additions & 3 deletions src/containers/ListingPage/ListingPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -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' });

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit 7d64044

Please sign in to comment.