diff --git a/components/ContentType/DestinationPage/CityListing/index.tsx b/components/ContentType/DestinationPage/CityListing/index.tsx index 639d46e09..6eda28805 100644 --- a/components/ContentType/DestinationPage/CityListing/index.tsx +++ b/components/ContentType/DestinationPage/CityListing/index.tsx @@ -19,7 +19,9 @@ export default async function CityListing({ cities }: CityListingProps) {
{intl.formatMessage( - { id: `{count} Locations` }, + { + id: `{count, plural, one {{count} Location} other {{count} Locations}}`, + }, { count: cities.length } )} diff --git a/components/ContentType/DestinationPage/DestinationCityPage/destinationCityPage.module.css b/components/ContentType/DestinationPage/DestinationCityPage/destinationCityPage.module.css index f2ba79648..1032fc939 100644 --- a/components/ContentType/DestinationPage/DestinationCityPage/destinationCityPage.module.css +++ b/components/ContentType/DestinationPage/DestinationCityPage/destinationCityPage.module.css @@ -16,7 +16,9 @@ .mainSection { grid-area: mainSection; padding-bottom: var(--Spacing-x7); - min-height: 500px; /* This is a temporary value because of no content atm */ + max-width: var(--max-width-page); + width: 100%; + margin: 0 auto; } .sidebar { diff --git a/components/ContentType/DestinationPage/DestinationCityPage/index.tsx b/components/ContentType/DestinationPage/DestinationCityPage/index.tsx index 2bc30e119..d2b51975d 100644 --- a/components/ContentType/DestinationPage/DestinationCityPage/index.tsx +++ b/components/ContentType/DestinationPage/DestinationCityPage/index.tsx @@ -7,9 +7,9 @@ import BreadcrumbsSkeleton from "@/components/TempDesignSystem/Breadcrumbs/Bread import Body from "@/components/TempDesignSystem/Text/Body" import Title from "@/components/TempDesignSystem/Text/Title" import TrackingSDK from "@/components/TrackingSDK" -import { getIntl } from "@/i18n" import ExperienceList from "../ExperienceList" +import HotelListing from "../HotelListing" import SidebarContentWrapper from "../SidebarContentWrapper" import DestinationPageSidePeek from "../Sidepeek" import StaticMap from "../StaticMap" @@ -20,16 +20,13 @@ import styles from "./destinationCityPage.module.css" import { PageContentTypeEnum } from "@/types/requests/contentType" export default async function DestinationCityPage() { - const [intl, pageData] = await Promise.all([ - getIntl(), - getDestinationCityPage(), - ]) + const pageData = await getDestinationCityPage() if (!pageData) { return null } - const { tracking, destinationCityPage } = pageData + const { tracking, destinationCityPage, hotels } = pageData const { images, heading, @@ -55,8 +52,7 @@ export default async function DestinationCityPage() { />
- {/* TODO: Add hotel listing by cityIdentifier */} - {">>>> MAIN CONTENT <<<<"} +