mirror of
https://github.com/kingomarnajjar/flex-template-web.git
synced 2026-07-29 13:06:03 +10:00
Merge pull request #987 from sharetribe/fix-booking-title
Fix wrong booking title on listing page
This commit is contained in:
commit
7d64044711
3 changed files with 20 additions and 4 deletions
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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' });
|
||||
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue