diff --git a/components/ContentType/HotelPage/Rooms/index.tsx b/components/ContentType/HotelPage/Rooms/index.tsx index cda5f2d3a..0c2509a5d 100644 --- a/components/ContentType/HotelPage/Rooms/index.tsx +++ b/components/ContentType/HotelPage/Rooms/index.tsx @@ -41,11 +41,11 @@ export function Rooms({ rooms }: RoomsProps) { .sort((a, b) => a.sortOrder - b.sortOrder) function handleToggleShowMore() { - const newState = !allRoomsVisible - setAllRoomsVisible(newState) - if (scrollRef.current && !newState) { + if (scrollRef.current && allRoomsVisible) { scrollRef.current.scrollIntoView({ behavior: "smooth" }) } + + setAllRoomsVisible((previousState) => !previousState) } return ( diff --git a/i18n/dictionaries/da.json b/i18n/dictionaries/da.json index f0eac5e8a..b1382e9a7 100644 --- a/i18n/dictionaries/da.json +++ b/i18n/dictionaries/da.json @@ -104,6 +104,7 @@ "Select country of residence": "Vælg bopælsland", "Select date of birth": "Vælg fødselsdato", "Select language": "Vælg sprog", + "Show less": "Vis mindre", "Show more": "Vis mere", "Show all amenities": "Vis alle faciliteter", "Skip to main content": "Spring over og gå til hovedindhold", diff --git a/i18n/dictionaries/de.json b/i18n/dictionaries/de.json index 2e2edd90b..0684acf2d 100644 --- a/i18n/dictionaries/de.json +++ b/i18n/dictionaries/de.json @@ -99,7 +99,8 @@ "Select country of residence": "Wählen Sie das Land Ihres Wohnsitzes aus", "Select date of birth": "Geburtsdatum auswählen", "Select language": "Sprache auswählen", - "Show more": "Zeig mehr", + "Show less": "Weniger anzeigen", + "Show more": "Mehr anzeigen", "Show all amenities": "Alle Annehmlichkeiten anzeigen", "Skip to main content": "Direkt zum Inhalt", "Something went wrong!": "Etwas ist schief gelaufen!", diff --git a/i18n/dictionaries/fi.json b/i18n/dictionaries/fi.json index 7ceaff6b9..56093a1e4 100644 --- a/i18n/dictionaries/fi.json +++ b/i18n/dictionaries/fi.json @@ -104,6 +104,7 @@ "Select country of residence": "Valitse asuinmaa", "Select date of birth": "Valitse syntymäaika", "Select language": "Valitse kieli", + "Show less": "Näytä vähemmän", "Show more": "Näytä lisää", "Show all amenities": "Näytä kaikki mukavuudet", "Skip to main content": "Siirry pääsisältöön", diff --git a/i18n/dictionaries/no.json b/i18n/dictionaries/no.json index fd0b6b804..c1c219e0b 100644 --- a/i18n/dictionaries/no.json +++ b/i18n/dictionaries/no.json @@ -104,6 +104,7 @@ "Select country of residence": "Velg bostedsland", "Select date of birth": "Velg fødselsdato", "Select language": "Velg språk", + "Show less": "Vis mindre", "Show more": "Vis mer", "Show all amenities": "Vis alle fasiliteter", "Skip to main content": "Gå videre til hovedsiden", diff --git a/i18n/dictionaries/sv.json b/i18n/dictionaries/sv.json index fe6e89969..8bb773e08 100644 --- a/i18n/dictionaries/sv.json +++ b/i18n/dictionaries/sv.json @@ -107,6 +107,7 @@ "Select country of residence": "Välj bosättningsland", "Select date of birth": "Välj födelsedatum", "Select language": "Välj språk", + "Show less": "Visa mindre", "Show more": "Visa mer", "Show all amenities": "Visa alla bekvämligheter", "Skip to main content": "Fortsätt till huvudinnehåll",