mirror of
https://github.com/kingomarnajjar/flex-template-web.git
synced 2026-07-29 13:06:03 +10:00
Fix and improve Order page title
This commit is contained in:
parent
1efa91d799
commit
5f8ae40ba4
2 changed files with 3 additions and 3 deletions
|
|
@ -16,7 +16,7 @@ export const OrderPageComponent = props => {
|
|||
const { currentUser, fetchOrderError, intl, params, transaction } = props;
|
||||
const currentTransaction = ensureTransaction(transaction);
|
||||
const currentListing = ensureListing(currentTransaction.listing);
|
||||
const title = currentListing.attributes.title;
|
||||
const listingTitle = currentListing.attributes.title;
|
||||
|
||||
// Redirect users with someone else's direct link to their own inbox/orders page.
|
||||
const isDataAvailable = currentUser &&
|
||||
|
|
@ -54,7 +54,7 @@ export const OrderPageComponent = props => {
|
|||
: loadingOrFaildFetching;
|
||||
|
||||
return (
|
||||
<PageLayout title={intl.formatMessage({ id: 'OrderPage.title' }, { title })}>
|
||||
<PageLayout title={intl.formatMessage({ id: 'OrderPage.title' }, { listingTitle })}>
|
||||
{panel}
|
||||
</PageLayout>
|
||||
);
|
||||
|
|
|
|||
|
|
@ -95,7 +95,7 @@
|
|||
"OrderDetailsPanel.bookingBreakdownTitle": "Booking breakdown",
|
||||
"OrderPage.fetchOrderFailed": "Fetching order data failed.",
|
||||
"OrderPage.loadingData": "Loading order data.",
|
||||
"OrderPage.title": "Order details for ${title}.",
|
||||
"OrderPage.title": "Order details: {listingTitle}",
|
||||
"PageLayout.authInfoFailed": "Could not get authentication information.",
|
||||
"PageLayout.logoutFailed": "Logout failed. Please try again.",
|
||||
"PaginationLinks.next": "Next page",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue