Remove duplication
This commit is contained in:
@ -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"
|
||||||
|
Reference in New Issue
Block a user