filters server + filter client
This commit is contained in:
@@ -3,8 +3,6 @@ import { IDesctiptionFloor } from "../../../types/descriptionFloor";
|
||||
import ApartmentDescription from "./ApartmentDescription";
|
||||
import FloorWestWingHighlighting from "./FloorWestWingHighlighting";
|
||||
import FloorWestWingLayout from "./FloorWestWingLayout";
|
||||
import { useNavigate } from "react-router-dom";
|
||||
import useWingSidebar from "../../../store/useWingSidebar";
|
||||
import FloorEastWingHighlighting from "./FloorEastWingHighlighting";
|
||||
import FloorEastWingLayout from "./FloorEastWingLayout";
|
||||
import useModal from "../../../store/useModal";
|
||||
@@ -23,11 +21,8 @@ const FloorSidebar = ({ currentFloor, onMouseEnter }: IFloorSidebarProps) => {
|
||||
const [mousePos, setMousePos] = useState<number[]>([0, 0]);
|
||||
const [isDescVisible, setIsDescVisible] = useState(false);
|
||||
const [is3DTourAvailable] = useState(true);
|
||||
const { setIsSidebar } = useWingSidebar();
|
||||
const { setModal } = useModal();
|
||||
|
||||
const navigate = useNavigate();
|
||||
|
||||
function handleOnApartmentClick(
|
||||
event: React.MouseEvent<SVGSVGElement, MouseEvent>
|
||||
) {
|
||||
@@ -37,7 +32,6 @@ const FloorSidebar = ({ currentFloor, onMouseEnter }: IFloorSidebarProps) => {
|
||||
setModal(<AboutComplexModal apartment={apartment} />);
|
||||
setIsDescVisible(false);
|
||||
}
|
||||
// console.log("e", apartments);
|
||||
}
|
||||
|
||||
function handleMouseMove(e: MouseEvent) {
|
||||
|
||||
Reference in New Issue
Block a user