feat(SW-2975): Added top campaign to campaign overview page
Approved-by: Matilda Landström
This commit is contained in:
@@ -5,11 +5,15 @@ import CampaignHotelListingClient from "./Client"
|
||||
interface CampaignHotelListingProps {
|
||||
heading: string
|
||||
hotelIds: string[]
|
||||
visibleCountMobile?: 3 | 6
|
||||
visibleCountDesktop?: 3 | 6
|
||||
}
|
||||
|
||||
export default async function CampaignHotelListing({
|
||||
heading,
|
||||
hotelIds,
|
||||
visibleCountMobile,
|
||||
visibleCountDesktop,
|
||||
}: CampaignHotelListingProps) {
|
||||
const hotels = await getHotelsByCSFilter({ hotelsToInclude: hotelIds })
|
||||
|
||||
@@ -17,5 +21,12 @@ export default async function CampaignHotelListing({
|
||||
return null
|
||||
}
|
||||
|
||||
return <CampaignHotelListingClient heading={heading} hotels={hotels} />
|
||||
return (
|
||||
<CampaignHotelListingClient
|
||||
heading={heading}
|
||||
hotels={hotels}
|
||||
visibleCountMobile={visibleCountMobile}
|
||||
visibleCountDesktop={visibleCountDesktop}
|
||||
/>
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user