Skip to content

Commit

Permalink
refactor: remove tests
Browse files Browse the repository at this point in the history
  • Loading branch information
emilyjablonski committed Jan 31, 2025
1 parent dfac280 commit df62a2e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 13 deletions.
2 changes: 0 additions & 2 deletions sites/public/src/components/listings/ListingsCombined.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@ const ListingsCombined = (props: ListingsCombinedProps) => {
onPageChange={props.onPageChange}
loading={getListLoading() || (props.isFirstBoundsLoad && props.isDesktop)}
mapMarkers={props.markers}
visibleMarkers={props.visibleMarkers}
/>
</div>
<div>
Expand Down Expand Up @@ -144,7 +143,6 @@ const ListingsCombined = (props: ListingsCombinedProps) => {
loading={getListLoading() || (props.isFirstBoundsLoad && props.isDesktop)}
onPageChange={props.onPageChange}
mapMarkers={props.markers}
visibleMarkers={props.visibleMarkers}
/>
<CustomSiteFooter />
</div>
Expand Down
14 changes: 3 additions & 11 deletions sites/public/src/components/listings/ListingsList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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[]
Expand All @@ -15,7 +14,6 @@ type ListingsListProps = {
onPageChange: (page: number) => void
loading: boolean
mapMarkers: ListingMapMarker[] | null
visibleMarkers: MapMarkerData[]
}

const ListingsList = (props: ListingsListProps) => {
Expand All @@ -25,18 +23,12 @@ const ListingsList = (props: ListingsListProps) => {
<Heading className={"sr-only"} priority={2}>
{t("t.listingsList")}
</Heading>
{props.listings.length > 0 || props.loading || props.visibleMarkers.length > 0 ? (
{props.listings.length > 0 || props.loading ? (
<div className={styles["listings-list-container"]}>{getListings(props.listings)}</div>
) : (
<ZeroListingsItem
title={
moreMarkersOnMap && !props.loading
? t("t.noVisibleListings")
: t("t.noMatchingListings")
}
description={
moreMarkersOnMap && !props.loading ? t("t.tryChangingArea") : t("t.tryRemovingFilters")
}
title={moreMarkersOnMap ? t("t.noVisibleListings") : t("t.noMatchingListings")}
description={moreMarkersOnMap ? t("t.tryChangingArea") : t("t.tryRemovingFilters")}
/>
)}
</div>
Expand Down

0 comments on commit df62a2e

Please sign in to comment.