From 1746ed98034c7c0e1815e7d297685f456699cbed Mon Sep 17 00:00:00 2001 From: Erik Tiekstra Date: Thu, 25 Sep 2025 13:26:23 +0000 Subject: [PATCH] feat(BOOK-242): Removed legacy seo filter block on destination pages Approved-by: Chuma Mcphoy (We Ahead) --- .../DestinationFilterAndSort/index.tsx | 180 ++++++++---------- 1 file changed, 80 insertions(+), 100 deletions(-) diff --git a/apps/scandic-web/components/DestinationFilterAndSort/index.tsx b/apps/scandic-web/components/DestinationFilterAndSort/index.tsx index a204b4cee..6b20bf3be 100644 --- a/apps/scandic-web/components/DestinationFilterAndSort/index.tsx +++ b/apps/scandic-web/components/DestinationFilterAndSort/index.tsx @@ -1,6 +1,5 @@ "use client" -import Link from "next/link" import { useRouter } from "next/navigation" import { Dialog, @@ -35,7 +34,7 @@ export default function DestinationFilterAndSort({ const intl = useIntl() const router = useRouter() const { - filters, + allFilters, sortItems, pendingFilters, pendingSort, @@ -48,7 +47,7 @@ export default function DestinationFilterAndSort({ resetPendingValues, setIsLoading, } = useDestinationDataStore((state) => ({ - filters: state.allFilters, + allFilters: state.allFilters, sortItems: state.sortItems, pendingFilters: state.pendingFilters, pendingSort: state.pendingSort, @@ -62,7 +61,6 @@ export default function DestinationFilterAndSort({ resetPendingValues: state.actions.resetPendingValues, setIsLoading: state.actions.setIsLoading, })) - const { facilityFilters, surroundingsFilters } = filters const alertHeading = listType === "city" ? intl.formatMessage({ @@ -128,103 +126,85 @@ export default function DestinationFilterAndSort({ } } return ( - <> - - - - - - {({ close }) => ( - <> -
- -

- {intl.formatMessage({ - defaultMessage: "Filter and sort", - })} -

-
- -
-
- - - -
- {pendingCount === 0 && ( -
- -
- )} -
- - -
- - )} -
-
-
-
- - {/* This section is added to the DOM for SEO purposes. The filters are linkable and should be indexable */} - - + + + + +
+ + + +
+ {pendingCount === 0 && ( +
+ +
+ )} + + + )} + + + + ) }