diff --git a/src/components/layouts/NavMenu.tsx b/src/components/layouts/NavMenu.tsx index dca91a9..0f55681 100644 --- a/src/components/layouts/NavMenu.tsx +++ b/src/components/layouts/NavMenu.tsx @@ -48,7 +48,6 @@ function NavMenu() { Surroundings clsx(!isActive && "max-md:hidden")} > @@ -110,7 +109,6 @@ function NavMenu() { diff --git a/src/components/pages/BlockPage.tsx b/src/components/pages/BlockPage.tsx index 5b15eaa..512558f 100644 --- a/src/components/pages/BlockPage.tsx +++ b/src/components/pages/BlockPage.tsx @@ -143,9 +143,7 @@ function BlockPage() {
- + baraha-logo
- Show room + Show room FACILITY_ONLY_UNIT_TYPES.has(t)); + } + + /** Индексы в facilitiesPoints: 0 — Hypermarket, 1 — Fitness Club (см. facilities) */ function isFacilityFilterHighlight(index: number) { - return index === 0 && selectedUnitTypes.has("Hypermarket"); + if (index === 0 && selectedUnitTypes.has("Hypermarket")) return true; + if (index === 1 && selectedUnitTypes.has("Healthcare service")) return true; + return false; } function handleImageLoad(index: number) { @@ -924,41 +932,43 @@ function MasterplanPage() { {isShowVideo && (hoveredMaskIndex === null || hoveredMaskIndex > 15) && - sequencePoints[currentFrame].map(({ x, y }, index) => ( - - { - if (index > 15) handleBlockMouseEnter(e, index); + sequencePoints[currentFrame].map(({ x, y }, index) => { + const blockPointOrange = + blockHasSelectedUnits(index) && !isFacilityOnlyFilterMode(); + return ( + { - if (index > 15) handleBlockMouseLeave(e); - }} - /> - - ))} + > + { + if (index > 15) handleBlockMouseEnter(e, index); + }} + onMouseLeave={(e) => { + if (index > 15) handleBlockMouseLeave(e); + }} + /> + + ); + })} {/* Masks */} @@ -1093,12 +1103,7 @@ function MasterplanPage() { )} -
{ - window.location.href = "/"; - }} - className="cursor-pointer" - > + baraha-logo-mobile -
+ ); } diff --git a/src/components/pages/SurroundingsPage.tsx b/src/components/pages/SurroundingsPage.tsx index 27b9151..8d4fe4b 100644 --- a/src/components/pages/SurroundingsPage.tsx +++ b/src/components/pages/SurroundingsPage.tsx @@ -15,6 +15,7 @@ import Button from "../ui/Button"; import PlusIcon from "../icons/PlusIcon"; import MinusIcon from "../icons/MinusIcon"; import FullscreenButton from "../ui/FullscreenButton"; +import { Link } from "react-router"; interface Position { x: number; @@ -1302,15 +1303,14 @@ function SurroundingsPage({ maxZoom = 3 }: MapProps) { - map { - window.location.href = "/"; - }} - /> + + map + ); }