-
-
-
- {currentMarker && (
-

- )}
+ {!currentMarker?.isDisabled && (
+
+
+
+
+ {currentMarker && (
+

+ )}
+
-
+ )}
);
};
diff --git a/client/src/components/modals/mobile/WingFloorModal.tsx b/client/src/components/modals/mobile/WingFloorModal.tsx
index 011d72e..f395c49 100644
--- a/client/src/components/modals/mobile/WingFloorModal.tsx
+++ b/client/src/components/modals/mobile/WingFloorModal.tsx
@@ -2,8 +2,18 @@ import { useSwipeable } from "react-swipeable";
import useModal from "../../../store/useModal";
import { useEffect, useState } from "react";
import MinusIcon from "../../icons/MinusIcon";
+import { IDesctiptionFloor } from "../../../types/descriptionFloor";
+import { IAparmentRes } from "../../../types/apartmentsRes";
-const WingFloorModal = () => {
+interface WingFloorModalProps {
+ currentFloor: IDesctiptionFloor | null;
+ floorApartments: IAparmentRes[];
+}
+
+const WingFloorModal = ({
+ currentFloor,
+ floorApartments,
+}: WingFloorModalProps) => {
const { setModal } = useModal();
const [isAnimate, setIsAnimate] = useState(false);
diff --git a/client/src/components/searchPage/LayoutOptions.tsx b/client/src/components/searchPage/LayoutOptions.tsx
index 317c76d..f1ca916 100644
--- a/client/src/components/searchPage/LayoutOptions.tsx
+++ b/client/src/components/searchPage/LayoutOptions.tsx
@@ -12,10 +12,7 @@ import { updateAccessToken } from "../../api/updateAccessToken";
import useApartments from "../../store/useApartments";
import useSearchFilters from "../../store/useSearchFilters";
import { useDebounce } from "@uidotdev/usehooks";
-import {
- perPageInitial,
- pageInitial,
-} from "../../consts/initialMasterplanFilters";
+import { perPageInitial } from "../../consts/initialMasterplanFilters";
import { getFilteredApartments } from "../../calc/getFilteredApartments";
import SearchLoader from "./SearchLoader";
diff --git a/client/src/consts/markers.ts b/client/src/consts/markers.ts
index 0e56f08..c35cc42 100644
--- a/client/src/consts/markers.ts
+++ b/client/src/consts/markers.ts
@@ -2,25 +2,31 @@ import { Marker } from "../types/marker";
const markers: Marker[] = [
{
- top: 38.2,
- left: 54,
+ top: 33.5,
+ left: 51.5,
itemNumber: 0,
popup: "/images/markers/popups/1.svg",
isPopupLeft: true,
+ isDisabled: true,
+ imgSrc: "/images/markers/2.png",
},
{
- top: 39.5,
- left: 56,
+ top: 35.5,
+ left: 53,
itemNumber: 1,
popup: "/images/markers/popups/1.svg",
isPopupLeft: false,
+ isDisabled: false,
+ imgSrc: "/images/markers/1.png",
},
{
- top: 73,
- left: 22.5,
+ top: 69,
+ left: 20.0,
itemNumber: 2,
popup: "/images/markers/popups/1.svg",
- isPopupLeft: false,
+ isPopupLeft: true,
+ isDisabled: true,
+ imgSrc: "/images/markers/2.png",
},
];
diff --git a/client/src/types/marker.ts b/client/src/types/marker.ts
index f1d618a..aee8c05 100644
--- a/client/src/types/marker.ts
+++ b/client/src/types/marker.ts
@@ -3,6 +3,8 @@ import { MarkerComponentProps } from "react-image-marker";
type Marker = MarkerComponentProps & {
popup: string;
isPopupLeft: boolean;
+ imgSrc: string;
+ isDisabled: boolean;
};
export type { Marker };
diff --git a/server/.env b/server/.env
index d1e6a69..1b8a6c4 100644
--- a/server/.env
+++ b/server/.env
@@ -1,2 +1,2 @@
-PORT=4003
-REFRESH_TOKEN=1000.da3146d49fa8a399f0c635e74954ff9c.e010dbb1bb605d7e1aa5bf7fc0521f8b
\ No newline at end of file
+PORT=4113
+REFRESH_TOKEN=1000.ca08e1e4dc5fe081e2bd7fdbd0adf5e6.68b8da640d7322a889f10eddbcf5ee6b
\ No newline at end of file