Merged in fix/explore-all-hotels (pull request #1998)
Fix/explore all hotels * fix: update lists * fix: adds Scandic Nuremberg after api fix * fix: add sorting based on city name Approved-by: Erik Tiekstra
This commit is contained in:
@@ -26,20 +26,22 @@ export default async function Destination({
|
||||
<AccordionItem title={country} subtitle={accordionSubtitle}>
|
||||
<div className={styles.container}>
|
||||
<ul className={styles.citiesList}>
|
||||
{cities.map((city) =>
|
||||
city.hotelCount > 0 ? (
|
||||
<li key={city.id}>
|
||||
<Link
|
||||
href={city.url}
|
||||
color="baseTextMediumContrast"
|
||||
textDecoration="underline"
|
||||
>
|
||||
{/* eslint-disable-next-line formatjs/no-literal-string-in-jsx */}
|
||||
{`${city.name} (${city.hotelCount})`}
|
||||
</Link>
|
||||
</li>
|
||||
) : null
|
||||
)}
|
||||
{cities
|
||||
.sort((a, b) => a.name.localeCompare(b.name))
|
||||
.map((city) =>
|
||||
city.hotelCount > 0 ? (
|
||||
<li key={city.id}>
|
||||
<Link
|
||||
href={city.url}
|
||||
color="baseTextMediumContrast"
|
||||
textDecoration="underline"
|
||||
>
|
||||
{/* eslint-disable-next-line formatjs/no-literal-string-in-jsx */}
|
||||
{`${city.name} (${city.hotelCount})`}
|
||||
</Link>
|
||||
</li>
|
||||
) : null
|
||||
)}
|
||||
</ul>
|
||||
{countryUrl && (
|
||||
<Link href={countryUrl} variant="icon" color="burgundy" weight="bold">
|
||||
|
||||
@@ -134,9 +134,10 @@
|
||||
"697",
|
||||
"634",
|
||||
"639",
|
||||
"698"
|
||||
"698",
|
||||
"643"
|
||||
],
|
||||
"hotelCount": 15,
|
||||
"hotelCount": 16,
|
||||
"url": "/da/destinationer/finland/helsinki"
|
||||
},
|
||||
{
|
||||
@@ -205,8 +206,8 @@
|
||||
{
|
||||
"id": "6abcbf56-7f7d-440b-94cd-f1ebb8c82180",
|
||||
"name": "Turku",
|
||||
"hotelIds": ["683", "640", "619", "629"],
|
||||
"hotelCount": 4,
|
||||
"hotelIds": ["640", "619", "629"],
|
||||
"hotelCount": 3,
|
||||
"url": "/da/destinationer/finland/turku"
|
||||
},
|
||||
{
|
||||
@@ -591,7 +592,7 @@
|
||||
{
|
||||
"country": "Sverige",
|
||||
"countryUrl": "/da/destinationer/sverige",
|
||||
"numberOfHotels": 88,
|
||||
"numberOfHotels": 89,
|
||||
"cities": [
|
||||
{
|
||||
"id": "a882a807-f45b-46aa-98f0-c1013f263faf",
|
||||
@@ -726,6 +727,7 @@
|
||||
"857",
|
||||
"808",
|
||||
"211",
|
||||
"833",
|
||||
"812",
|
||||
"813",
|
||||
"803",
|
||||
@@ -739,7 +741,7 @@
|
||||
"802",
|
||||
"223"
|
||||
],
|
||||
"hotelCount": 26,
|
||||
"hotelCount": 27,
|
||||
"url": "/da/destinationer/sverige/stockholm"
|
||||
},
|
||||
{
|
||||
@@ -894,7 +896,7 @@
|
||||
{
|
||||
"country": "Tyskland",
|
||||
"countryUrl": "/da/destinationer/tyskland",
|
||||
"numberOfHotels": 6,
|
||||
"numberOfHotels": 7,
|
||||
"cities": [
|
||||
{
|
||||
"id": "35b2df9b-261a-4086-ac20-b6d459f62e48",
|
||||
@@ -923,6 +925,13 @@
|
||||
"hotelIds": ["557"],
|
||||
"hotelCount": 1,
|
||||
"url": "/da/destinationer/tyskland/munchen"
|
||||
},
|
||||
{
|
||||
"id": "aa66312c-b502-4f28-bd68-6e8181e2ecce",
|
||||
"name": "Nürnberg",
|
||||
"hotelIds": ["558"],
|
||||
"hotelCount": 1,
|
||||
"url": "/da/destinationer/tyskland/nurnberg"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@@ -107,7 +107,7 @@
|
||||
{
|
||||
"country": "Deutschland",
|
||||
"countryUrl": "/de/reiseziele/deutschland",
|
||||
"numberOfHotels": 6,
|
||||
"numberOfHotels": 7,
|
||||
"cities": [
|
||||
{
|
||||
"id": "35b2df9b-261a-4086-ac20-b6d459f62e48",
|
||||
@@ -136,6 +136,13 @@
|
||||
"hotelIds": ["557"],
|
||||
"hotelCount": 1,
|
||||
"url": "/de/reiseziele/deutschland/munchen"
|
||||
},
|
||||
{
|
||||
"id": "aa66312c-b502-4f28-bd68-6e8181e2ecce",
|
||||
"name": "Nürnberg",
|
||||
"hotelIds": ["558"],
|
||||
"hotelCount": 1,
|
||||
"url": "/de/reiseziele/deutschland/nurnberg"
|
||||
}
|
||||
]
|
||||
},
|
||||
@@ -169,9 +176,10 @@
|
||||
"697",
|
||||
"634",
|
||||
"639",
|
||||
"698"
|
||||
"698",
|
||||
"643"
|
||||
],
|
||||
"hotelCount": 15,
|
||||
"hotelCount": 16,
|
||||
"url": "/de/reiseziele/finnland/helsinki"
|
||||
},
|
||||
{
|
||||
@@ -240,8 +248,8 @@
|
||||
{
|
||||
"id": "6abcbf56-7f7d-440b-94cd-f1ebb8c82180",
|
||||
"name": "Turku",
|
||||
"hotelIds": ["683", "640", "619", "629"],
|
||||
"hotelCount": 4,
|
||||
"hotelIds": ["640", "619", "629"],
|
||||
"hotelCount": 3,
|
||||
"url": "/de/reiseziele/finnland/turku"
|
||||
},
|
||||
{
|
||||
@@ -626,7 +634,7 @@
|
||||
{
|
||||
"country": "Schweden",
|
||||
"countryUrl": "/de/reiseziele/schweden",
|
||||
"numberOfHotels": 88,
|
||||
"numberOfHotels": 89,
|
||||
"cities": [
|
||||
{
|
||||
"id": "a882a807-f45b-46aa-98f0-c1013f263faf",
|
||||
@@ -775,6 +783,7 @@
|
||||
"857",
|
||||
"808",
|
||||
"211",
|
||||
"833",
|
||||
"812",
|
||||
"813",
|
||||
"803",
|
||||
@@ -788,7 +797,7 @@
|
||||
"802",
|
||||
"223"
|
||||
],
|
||||
"hotelCount": 26,
|
||||
"hotelCount": 27,
|
||||
"url": "/de/reiseziele/schweden/stockholm"
|
||||
},
|
||||
{
|
||||
|
||||
@@ -127,9 +127,10 @@
|
||||
"697",
|
||||
"634",
|
||||
"639",
|
||||
"698"
|
||||
"698",
|
||||
"643"
|
||||
],
|
||||
"hotelCount": 15,
|
||||
"hotelCount": 16,
|
||||
"url": "/en/destinations/finland/helsinki"
|
||||
},
|
||||
{
|
||||
@@ -205,8 +206,8 @@
|
||||
{
|
||||
"id": "6abcbf56-7f7d-440b-94cd-f1ebb8c82180",
|
||||
"name": "Turku",
|
||||
"hotelIds": ["683", "640", "619", "629"],
|
||||
"hotelCount": 4,
|
||||
"hotelIds": ["640", "619", "629"],
|
||||
"hotelCount": 3,
|
||||
"url": "/en/destinations/finland/turku"
|
||||
},
|
||||
{
|
||||
@@ -291,7 +292,7 @@
|
||||
{
|
||||
"country": "Germany",
|
||||
"countryUrl": "/en/destinations/germany",
|
||||
"numberOfHotels": 6,
|
||||
"numberOfHotels": 7,
|
||||
"cities": [
|
||||
{
|
||||
"id": "35b2df9b-261a-4086-ac20-b6d459f62e48",
|
||||
@@ -320,6 +321,13 @@
|
||||
"hotelIds": ["557"],
|
||||
"hotelCount": 1,
|
||||
"url": "/en/destinations/germany/munich"
|
||||
},
|
||||
{
|
||||
"id": "aa66312c-b502-4f28-bd68-6e8181e2ecce",
|
||||
"name": "Nuremberg",
|
||||
"hotelIds": ["558"],
|
||||
"hotelCount": 1,
|
||||
"url": "/en/destinations/germany/nuremberg"
|
||||
}
|
||||
]
|
||||
},
|
||||
@@ -626,7 +634,7 @@
|
||||
{
|
||||
"country": "Sweden",
|
||||
"countryUrl": "/en/destinations/sweden",
|
||||
"numberOfHotels": 88,
|
||||
"numberOfHotels": 89,
|
||||
"cities": [
|
||||
{
|
||||
"id": "3d813c56-c135-4591-864b-40ea845df716",
|
||||
@@ -782,6 +790,7 @@
|
||||
"857",
|
||||
"808",
|
||||
"211",
|
||||
"833",
|
||||
"812",
|
||||
"813",
|
||||
"803",
|
||||
@@ -795,7 +804,7 @@
|
||||
"802",
|
||||
"223"
|
||||
],
|
||||
"hotelCount": 26,
|
||||
"hotelCount": 27,
|
||||
"url": "/en/destinations/sweden/stockholm"
|
||||
},
|
||||
{
|
||||
|
||||
@@ -302,7 +302,7 @@
|
||||
{
|
||||
"country": "Ruotsi",
|
||||
"countryUrl": "/fi/kohteet/ruotsi",
|
||||
"numberOfHotels": 88,
|
||||
"numberOfHotels": 89,
|
||||
"cities": [
|
||||
{
|
||||
"id": "a882a807-f45b-46aa-98f0-c1013f263faf",
|
||||
@@ -420,6 +420,7 @@
|
||||
"857",
|
||||
"808",
|
||||
"211",
|
||||
"833",
|
||||
"812",
|
||||
"813",
|
||||
"803",
|
||||
@@ -433,7 +434,7 @@
|
||||
"802",
|
||||
"223"
|
||||
],
|
||||
"hotelCount": 26,
|
||||
"hotelCount": 27,
|
||||
"url": "/fi/kohteet/ruotsi/tukholma"
|
||||
},
|
||||
{
|
||||
@@ -605,7 +606,7 @@
|
||||
{
|
||||
"country": "Saksa",
|
||||
"countryUrl": "/fi/kohteet/saksa",
|
||||
"numberOfHotels": 6,
|
||||
"numberOfHotels": 7,
|
||||
"cities": [
|
||||
{
|
||||
"id": "35b2df9b-261a-4086-ac20-b6d459f62e48",
|
||||
@@ -634,6 +635,13 @@
|
||||
"hotelIds": ["557"],
|
||||
"hotelCount": 1,
|
||||
"url": "/fi/kohteet/saksa/munchen"
|
||||
},
|
||||
{
|
||||
"id": "aa66312c-b502-4f28-bd68-6e8181e2ecce",
|
||||
"name": "Nürnberg",
|
||||
"hotelIds": ["558"],
|
||||
"hotelCount": 1,
|
||||
"url": "/fi/kohteet/saksa/nurnberg"
|
||||
}
|
||||
]
|
||||
},
|
||||
@@ -667,9 +675,10 @@
|
||||
"697",
|
||||
"634",
|
||||
"639",
|
||||
"698"
|
||||
"698",
|
||||
"643"
|
||||
],
|
||||
"hotelCount": 15,
|
||||
"hotelCount": 16,
|
||||
"url": "/fi/kohteet/suomi/helsinki"
|
||||
},
|
||||
{
|
||||
@@ -738,8 +747,8 @@
|
||||
{
|
||||
"id": "6abcbf56-7f7d-440b-94cd-f1ebb8c82180",
|
||||
"name": "Turku",
|
||||
"hotelIds": ["683", "640", "619", "629"],
|
||||
"hotelCount": 4,
|
||||
"hotelIds": ["640", "619", "629"],
|
||||
"hotelCount": 3,
|
||||
"url": "/fi/kohteet/suomi/turku"
|
||||
},
|
||||
{
|
||||
|
||||
@@ -134,9 +134,10 @@
|
||||
"697",
|
||||
"634",
|
||||
"639",
|
||||
"698"
|
||||
"698",
|
||||
"643"
|
||||
],
|
||||
"hotelCount": 15,
|
||||
"hotelCount": 16,
|
||||
"url": "/no/destinasjoner/finland/helsinki"
|
||||
},
|
||||
{
|
||||
@@ -205,8 +206,8 @@
|
||||
{
|
||||
"id": "6abcbf56-7f7d-440b-94cd-f1ebb8c82180",
|
||||
"name": "Turku",
|
||||
"hotelIds": ["683", "640", "619", "629"],
|
||||
"hotelCount": 4,
|
||||
"hotelIds": ["640", "619", "629"],
|
||||
"hotelCount": 3,
|
||||
"url": "/no/destinasjoner/finland/turku"
|
||||
},
|
||||
{
|
||||
@@ -591,7 +592,7 @@
|
||||
{
|
||||
"country": "Sverige",
|
||||
"countryUrl": "/no/destinasjoner/sverige",
|
||||
"numberOfHotels": 88,
|
||||
"numberOfHotels": 89,
|
||||
"cities": [
|
||||
{
|
||||
"id": "6bace0a2-5cb1-4f4f-9c6f-a226c66fad00",
|
||||
@@ -733,6 +734,7 @@
|
||||
"857",
|
||||
"808",
|
||||
"211",
|
||||
"833",
|
||||
"812",
|
||||
"813",
|
||||
"803",
|
||||
@@ -746,7 +748,7 @@
|
||||
"802",
|
||||
"223"
|
||||
],
|
||||
"hotelCount": 26,
|
||||
"hotelCount": 27,
|
||||
"url": "/no/destinasjoner/sverige/stockholm"
|
||||
},
|
||||
{
|
||||
@@ -894,7 +896,7 @@
|
||||
{
|
||||
"country": "Tyskland",
|
||||
"countryUrl": "/no/destinasjoner/tyskland",
|
||||
"numberOfHotels": 6,
|
||||
"numberOfHotels": 7,
|
||||
"cities": [
|
||||
{
|
||||
"id": "35b2df9b-261a-4086-ac20-b6d459f62e48",
|
||||
@@ -923,6 +925,13 @@
|
||||
"hotelIds": ["557"],
|
||||
"hotelCount": 1,
|
||||
"url": "/no/destinasjoner/tyskland/munchen"
|
||||
},
|
||||
{
|
||||
"id": "aa66312c-b502-4f28-bd68-6e8181e2ecce",
|
||||
"name": "Nürnberg",
|
||||
"hotelIds": ["558"],
|
||||
"hotelCount": 1,
|
||||
"url": "/no/destinasjoner/tyskland/nurnberg"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@@ -134,9 +134,10 @@
|
||||
"697",
|
||||
"634",
|
||||
"639",
|
||||
"698"
|
||||
"698",
|
||||
"643"
|
||||
],
|
||||
"hotelCount": 15,
|
||||
"hotelCount": 16,
|
||||
"url": "/sv/destinationer/finland/helsingfors"
|
||||
},
|
||||
{
|
||||
@@ -205,8 +206,8 @@
|
||||
{
|
||||
"id": "6abcbf56-7f7d-440b-94cd-f1ebb8c82180",
|
||||
"name": "Åbo",
|
||||
"hotelIds": ["683", "640", "619", "629"],
|
||||
"hotelCount": 4,
|
||||
"hotelIds": ["640", "619", "629"],
|
||||
"hotelCount": 3,
|
||||
"url": "/sv/destinationer/finland/abo"
|
||||
},
|
||||
{
|
||||
@@ -590,8 +591,8 @@
|
||||
},
|
||||
{
|
||||
"country": "Sverige",
|
||||
"countryUrl": "/sv/destinationer/sweden",
|
||||
"numberOfHotels": 88,
|
||||
"countryUrl": "/sv/destinationer/sverige",
|
||||
"numberOfHotels": 89,
|
||||
"cities": [
|
||||
{
|
||||
"id": "37a32ca6-6467-4e75-8810-67edd75143cd",
|
||||
@@ -709,6 +710,7 @@
|
||||
"857",
|
||||
"808",
|
||||
"211",
|
||||
"833",
|
||||
"812",
|
||||
"813",
|
||||
"803",
|
||||
@@ -722,7 +724,7 @@
|
||||
"802",
|
||||
"223"
|
||||
],
|
||||
"hotelCount": 26,
|
||||
"hotelCount": 27,
|
||||
"url": "/sv/destinationer/sverige/stockholm"
|
||||
},
|
||||
{
|
||||
@@ -894,7 +896,7 @@
|
||||
{
|
||||
"country": "Tyskland",
|
||||
"countryUrl": "/sv/destinationer/tyskland",
|
||||
"numberOfHotels": 6,
|
||||
"numberOfHotels": 7,
|
||||
"cities": [
|
||||
{
|
||||
"id": "35b2df9b-261a-4086-ac20-b6d459f62e48",
|
||||
@@ -923,6 +925,13 @@
|
||||
"hotelIds": ["557"],
|
||||
"hotelCount": 1,
|
||||
"url": "/sv/destinationer/tyskland/munchen"
|
||||
},
|
||||
{
|
||||
"id": "aa66312c-b502-4f28-bd68-6e8181e2ecce",
|
||||
"name": "Nürnberg",
|
||||
"hotelIds": ["558"],
|
||||
"hotelCount": 1,
|
||||
"url": "/sv/destinationer/tyskland/nurnberg"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user