From 5ebb28dbcc9ad898c47329ce506fb1270d1f4738 Mon Sep 17 00:00:00 2001 From: popovspiridon99 Date: Wed, 22 Oct 2025 10:45:47 +0900 Subject: [PATCH] Map view grid --- client/src/components/map/MapComponent.tsx | 257 ++++++++++----------- 1 file changed, 128 insertions(+), 129 deletions(-) diff --git a/client/src/components/map/MapComponent.tsx b/client/src/components/map/MapComponent.tsx index 1f69a0a..0f8119d 100644 --- a/client/src/components/map/MapComponent.tsx +++ b/client/src/components/map/MapComponent.tsx @@ -33,7 +33,7 @@ import GisService from '../../services/GisService' import MapMode from './MapMode' import { satMapsProviders, schemas } from '../../constants/map' import MapPrint from './MapPrint/MapPrint' -import { Field, Menu, MenuButton, MenuList, MenuPopover, MenuTrigger, Combobox, Option, Button, Divider, Spinner, Portal, Dropdown, Tooltip, Drawer, DrawerHeader, DrawerBody, Text, Link } from '@fluentui/react-components' +import { Field, Menu, MenuButton, MenuList, MenuPopover, MenuTrigger, Combobox, Option, Button, Divider, Spinner, Portal, Dropdown, Tooltip, Drawer, DrawerHeader, DrawerBody, Text, Link, List } from '@fluentui/react-components' import { IRegion } from '../../interfaces/fuel' import { useAppStore } from '../../store/app' import { getDistrictData, getRegionData, setDistrictsData, setRegionsData } from '../../store/regions' @@ -604,7 +604,7 @@ const MapComponent = ({ }, [selectedYear]) return ( -
+
{active && @@ -681,13 +681,121 @@ const MapComponent = ({ } +
+
+ + {!!selectedRegion && !selectedYear && + +
+
e.preventDefault()} onDrop={(e) => handleImageDrop(e, id)}> +
+ {statusText && active && !selectedYear && + +
+ {/* {statusText} */} +
+
+ } +
@@ -864,21 +876,8 @@ const MapComponent = ({
- -
e.preventDefault()} onDrop={(e) => handleImageDrop(e, id)}> -
- {statusText && active && !selectedYear && - -
- {/* {statusText} */} -
-
- } -
-
- {(linesValidating || figuresValidating) && (
)} -
+