diff --git a/client/.env.development b/client/.env.development index 2837c03..26b1d57 100644 --- a/client/.env.development +++ b/client/.env.development @@ -1 +1 @@ -VITE_SERVER_API=http://192.168.1.120:4002 \ No newline at end of file +VITE_SERVER_API=http://192.168.1.175:4002 \ No newline at end of file diff --git a/client/.env.production b/client/.env.production index 51d96d5..a567378 100644 --- a/client/.env.production +++ b/client/.env.production @@ -1 +1 @@ -VITE_SERVER_API=http://194.26.138.94:4002/ \ No newline at end of file +VITE_SERVER_API=https://3d.irth.ae/api \ No newline at end of file diff --git a/client/src/components/virtualTour/VirtualTourCard.tsx b/client/src/components/virtualTour/VirtualTourCard.tsx index 47bedbb..369504b 100644 --- a/client/src/components/virtualTour/VirtualTourCard.tsx +++ b/client/src/components/virtualTour/VirtualTourCard.tsx @@ -8,12 +8,12 @@ import ChevronDownIcon from "../icons/ChevronDownIcon"; import { useEffect, useState } from "react"; import useFavoritesStore from "../../store/useFavoritesStore"; import HeartFilledIcon from "../icons/HeartFilledIcon"; -import apartaments from "../../data/apartments.json"; +// import apartaments from "../../data/apartments.json"; import useSphere from "../../store/useSphere"; -import { ISphere } from "../../types/apartmentSphere"; +// import { ISphere } from "../../types/apartmentSphere"; import useModal from "../../store/useModal"; import UnitModalForSearchPage from "../modals/UnitModalForSearchPage"; -import { isMobile } from "react-device-detect"; +// import { isMobile } from "react-device-detect"; import Button3 from "../Button3"; interface Props { @@ -25,7 +25,7 @@ function VirtualTourCard({ unit, type }: Props) { const navigate = useNavigate(); const [isShow, setIsShow] = useState(false); const { favoriteUnits, setFavoriteUnits } = useFavoritesStore(); - const { selectedSphere, setSelectedSphere } = useSphere(); + const { selectedSphere } = useSphere(); const { modal, setModal } = useModal(); function getMainImage(): string { @@ -157,15 +157,15 @@ function VirtualTourCard({ unit, type }: Props) { } } - function handleClickRoomType(roomType: string) { - const foundSphere = apartaments - .find((apartament) => apartament.id === type) - ?.spheres.find((sphere) => sphere.roomType === roomType); + // function handleClickRoomType(roomType: string) { + // const foundSphere = apartaments + // .find((apartament) => apartament.id === type) + // ?.spheres.find((sphere) => sphere.roomType === roomType); - if (!foundSphere) return; + // if (!foundSphere) return; - setSelectedSphere(foundSphere as ISphere); - } + // setSelectedSphere(foundSphere as ISphere); + // } useEffect(() => { console.log("selectedSphere", selectedSphere); @@ -260,7 +260,7 @@ function VirtualTourCard({ unit, type }: Props) {
- {!isMobile && + {/* {!isMobile && apartaments .find((apartament) => apartament.id === type) ?.spheres.map((sphere) => sphere.roomType) @@ -274,7 +274,7 @@ function VirtualTourCard({ unit, type }: Props) { > {value} - ))} + ))} */}
); };