diff --git a/src/components/FloorPopup.tsx b/src/components/FloorPopup.tsx index c3a4d14..fc1a9d2 100644 --- a/src/components/FloorPopup.tsx +++ b/src/components/FloorPopup.tsx @@ -8,7 +8,7 @@ interface FloorMarkerProps { function FloorPopup({ title, position }: FloorMarkerProps) { return ( - + {title && (
-

{title}

-

{}

+

+ {!Number.isNaN(+title) + ? title + : `${title.split(" ").at(-1)} floor`} +

+ {!Number.isNaN(+title.split(" ").at(-1)!) && ( +

+ {title.split(" ")[0]} Wing +

+ )}

- {title && !Number.isNaN((+title!.split(" ").at(-1)!)!) + {title && Number.isNaN((+title!.split(" ").at(-1)!)!) ? "16 Amenties" - : `${title?.split(" ").at(-1)} floor`} + : `8 apartments`}

- {Number.isNaN(+title!) && ( + {!Number.isNaN(+title.split(" ").at(-1)!) && (
@@ -40,9 +48,62 @@ function FloorPopup({ title, position }: FloorMarkerProps) {

-
+ {!Number.isNaN(+title.split(" ").at(-1)!) ? ( + <> +
+

+ 4 +

+

+ Studio Flex +

+
+
+

+ 4 +

+

Studio²

+
+
+

+ 4 +

+

+ 1 Bedroom² +

+
+
+

+ 2 +

+

+ 2 Bedroom² +

+
+ + ) : ( + <> +
+

+ 8 +

+

+ Indoor Amenties +

+
+
+

+ 8 +

+

+ Outdoor Amenties +

+
+ + )}
+
)} diff --git a/src/components/Footer.tsx b/src/components/Footer.tsx index 7fff11c..cca910a 100644 --- a/src/components/Footer.tsx +++ b/src/components/Footer.tsx @@ -25,7 +25,7 @@ function Footer() { const { setModal } = useModalStore(); return ( -
+
-
+
Favorites {!!favoriteUnits.length && ( -
+
{favoriteUnits.length}
)} Search -
+
+ {/*
+
*/}
diff --git a/src/components/Header.tsx b/src/components/Header.tsx index 74ddbde..e9f9758 100644 --- a/src/components/Header.tsx +++ b/src/components/Header.tsx @@ -80,9 +80,7 @@ function Header() {
-
- -
+
{/* */}
{opened && ( @@ -216,7 +214,7 @@ function NavItem({ href, title }: { href: string; title: string }) { > {title} {title === "Favorites" && !!favoriteUnits.length && ( -
+
{favoriteUnits.length}
)} @@ -260,9 +258,9 @@ function BrochuresDropdown() { {opened && ( diff --git a/src/components/ModalContainer.tsx b/src/components/ModalContainer.tsx index 586db89..7a95923 100644 --- a/src/components/ModalContainer.tsx +++ b/src/components/ModalContainer.tsx @@ -44,9 +44,9 @@ function ModalContainer() { {modal && (
{ + resetFilters(); + }, [project]); + return ( <> {inModal && ( diff --git a/src/pages/FavouritesPage.tsx b/src/pages/FavouritesPage.tsx index 683a13b..744724e 100644 --- a/src/pages/FavouritesPage.tsx +++ b/src/pages/FavouritesPage.tsx @@ -110,7 +110,7 @@ function FavoritesPage() {
{filteredFavoriteUnits.length === 0 ? ( -
+

@@ -166,7 +166,10 @@ function FavoritesPage() {

setRemoveSimilar((prev) => !prev)} >
-

- Remove similar - parameters -

+

Only differing