diff --git a/apps/scandic-web/components/ContentType/DestinationPage/CityListing/cityListing.module.css b/apps/scandic-web/components/ContentType/DestinationPage/CityListing/cityListing.module.css index 1f4318bb4..b5f62647a 100644 --- a/apps/scandic-web/components/ContentType/DestinationPage/CityListing/cityListing.module.css +++ b/apps/scandic-web/components/ContentType/DestinationPage/CityListing/cityListing.module.css @@ -18,10 +18,6 @@ gap: var(--Spacing-x2); } -.cityList:not(.allVisible) li:nth-child(n + 6) { - display: none; -} - @media screen and (min-width: 768px) { .container { --scroll-margin-top: calc( diff --git a/apps/scandic-web/components/ContentType/DestinationPage/CityListing/index.tsx b/apps/scandic-web/components/ContentType/DestinationPage/CityListing/index.tsx index dc787426c..e01ac8382 100644 --- a/apps/scandic-web/components/ContentType/DestinationPage/CityListing/index.tsx +++ b/apps/scandic-web/components/ContentType/DestinationPage/CityListing/index.tsx @@ -1,6 +1,6 @@ "use client" -import { useRef, useState } from "react" +import { useRef } from "react" import { useIntl } from "react-intl" import { useDestinationDataStore } from "@/stores/destination-data" @@ -8,7 +8,6 @@ import { useDestinationDataStore } from "@/stores/destination-data" import DestinationFilterAndSort from "@/components/DestinationFilterAndSort" import Alert from "@/components/TempDesignSystem/Alert" import { BackToTopButton } from "@/components/TempDesignSystem/BackToTopButton" -import ShowMoreButton from "@/components/TempDesignSystem/ShowMoreButton" import Subtitle from "@/components/TempDesignSystem/Text/Subtitle" import { useScrollToTop } from "@/hooks/useScrollToTop" @@ -30,16 +29,6 @@ export default function CityListing() { activeCities: state.activeCities, isLoading: state.isLoading, })) - const [allCitiesVisible, setAllCitiesVisible] = useState( - activeCities.length <= 5 - ) - - function handleShowMore() { - if (scrollRef.current && allCitiesVisible) { - scrollRef.current.scrollIntoView({ behavior: "smooth" }) - } - setAllCitiesVisible((state) => !state) - } return isLoading ? ( @@ -66,21 +55,13 @@ export default function CityListing() { /> ) : ( <> -