diff --git a/client/public/images/company/1.jpg b/client/public/images/company/1.jpg index e9d3951..0e16ece 100644 Binary files a/client/public/images/company/1.jpg and b/client/public/images/company/1.jpg differ diff --git a/client/public/images/company/2.jpg b/client/public/images/company/2.jpg index 8b12a8e..0f38aca 100644 Binary files a/client/public/images/company/2.jpg and b/client/public/images/company/2.jpg differ diff --git a/client/src/components/ApartmentSidebar.tsx b/client/src/components/ApartmentSidebar.tsx index bfca128..36ff621 100644 --- a/client/src/components/ApartmentSidebar.tsx +++ b/client/src/components/ApartmentSidebar.tsx @@ -109,6 +109,7 @@ const ApartmentSidebar = ({ currentApartment }: ApartmentSidebarProps) => { className="w-full flex justify-center" />
} text="Send Enquiry" className="justify-center hidden lg:flex" @@ -122,6 +123,7 @@ const FavoriteAppartmentCard = ({ card }: FavoriteAppartmentCardProps) => { onClick={handleOnSendEquiryClick} /> } text="Send Enquiry" className="justify-center lg:hidden flex" diff --git a/client/src/components/favoritesPage/FavoriteSliderCard.tsx b/client/src/components/favoritesPage/FavoriteSliderCard.tsx index f7fbf8a..aa4f6b0 100644 --- a/client/src/components/favoritesPage/FavoriteSliderCard.tsx +++ b/client/src/components/favoritesPage/FavoriteSliderCard.tsx @@ -1,4 +1,5 @@ // import { formatNumber } from "../../calc/formatNumber"; +import { useNavigate } from "react-router-dom"; import { apartmentLayoutImages } from "../../consts/apartmentLayoutsImages"; import { apartmentRoutes } from "../../consts/apartmentsRoutes"; import { unitTypeWithLayouts } from "../../consts/defaultApartmentTypes"; @@ -16,6 +17,7 @@ interface FavoriteSliderCardProps { const FavoriteSliderCard = ({ card, elementRef }: FavoriteSliderCardProps) => { const wing = card.Unit_No.split("-")[0] === "E" ? "East" : "West"; const { setFavorites } = useFavorites(); + const navigate = useNavigate(); const isLayoutType = unitTypeWithLayouts.some( (type) => type === card.Unit_Type ); @@ -23,6 +25,10 @@ const FavoriteSliderCard = ({ card, elementRef }: FavoriteSliderCardProps) => { ? apartmentLayoutImages[card.Unit_Type] : apartmentRoutes.find((apr) => apr.type === card.Unit_Type)?.layout; + const handleOnFavoriteCardClick = () => { + navigate(`../search/${card.id}`); + }; + const handleOnAddFavoriteClick = ( e: React.MouseEvent{card.Unit_No}