Browse Source

Remove duplication

mantine
popovspiridon99 3 months ago
parent
commit
ec622da773
  1. 8
      client/src/components/map/MapComponent.tsx

8
client/src/components/map/MapComponent.tsx

@ -683,14 +683,6 @@ const MapComponent = ({
<Flex direction='column' w='100%' h='100%'> <Flex direction='column' w='100%' h='100%'>
<Flex w='100%' h='94%' p='xs' style={{ flexGrow: 1 }}> <Flex w='100%' h='94%' p='xs' style={{ flexGrow: 1 }}>
<Stack w='100%' maw='340px'> <Stack w='100%' maw='340px'>
{selectedRegion && selectedDistrict && selectedYear &&
<Flex direction='column' h={'100%'} w={'100%'} style={mapControlsStyle}>
<TabsPane defaultTab='objects' tabs={objectsPane} />
<Divider />
<TabsPane defaultTab='parameters' tabs={paramsPane} />
</Flex>
}
<Transition <Transition
mounted={!!selectedRegion && !!selectedDistrict && !!selectedYear} mounted={!!selectedRegion && !!selectedDistrict && !!selectedYear}
transition="slide-right" transition="slide-right"

Loading…
Cancel
Save