Skip to content

Commit

Permalink
Fix wrong booking title on listing page
Browse files Browse the repository at this point in the history
  • Loading branch information
lyyder committed Dec 27, 2018
1 parent 4f489ea commit 2c3bb15
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 4 deletions.
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 2c3bb15

Please sign in to comment.