From df62a2e21c6bb81349513fde36bca5b29b8eed96 Mon Sep 17 00:00:00 2001 From: Emily Jablonski Date: Thu, 30 Jan 2025 18:59:40 -0700 Subject: [PATCH] refactor: remove tests --- .../src/components/listings/ListingsCombined.tsx | 2 -- .../src/components/listings/ListingsList.tsx | 14 +++----------- 2 files changed, 3 insertions(+), 13 deletions(-) diff --git a/sites/public/src/components/listings/ListingsCombined.tsx b/sites/public/src/components/listings/ListingsCombined.tsx index dbb5ad4064..86aa65c6de 100644 --- a/sites/public/src/components/listings/ListingsCombined.tsx +++ b/sites/public/src/components/listings/ListingsCombined.tsx @@ -67,7 +67,6 @@ const ListingsCombined = (props: ListingsCombinedProps) => { onPageChange={props.onPageChange} loading={getListLoading() || (props.isFirstBoundsLoad && props.isDesktop)} mapMarkers={props.markers} - visibleMarkers={props.visibleMarkers} />
@@ -144,7 +143,6 @@ const ListingsCombined = (props: ListingsCombinedProps) => { loading={getListLoading() || (props.isFirstBoundsLoad && props.isDesktop)} onPageChange={props.onPageChange} mapMarkers={props.markers} - visibleMarkers={props.visibleMarkers} />
diff --git a/sites/public/src/components/listings/ListingsList.tsx b/sites/public/src/components/listings/ListingsList.tsx index e0bffc6de5..cddbe9306f 100644 --- a/sites/public/src/components/listings/ListingsList.tsx +++ b/sites/public/src/components/listings/ListingsList.tsx @@ -6,7 +6,6 @@ import { LoadingOverlay, t, InfoCard, LinkButton } from "@bloom-housing/ui-compo import { getListings } from "../../lib/helpers" import { Pagination } from "./Pagination" import styles from "./ListingsCombined.module.scss" -import { MapMarkerData } from "./ListingsMap" type ListingsListProps = { listings: Listing[] @@ -15,7 +14,6 @@ type ListingsListProps = { onPageChange: (page: number) => void loading: boolean mapMarkers: ListingMapMarker[] | null - visibleMarkers: MapMarkerData[] } const ListingsList = (props: ListingsListProps) => { @@ -25,18 +23,12 @@ const ListingsList = (props: ListingsListProps) => { {t("t.listingsList")} - {props.listings.length > 0 || props.loading || props.visibleMarkers.length > 0 ? ( + {props.listings.length > 0 || props.loading ? (
{getListings(props.listings)}
) : ( )}