Skip to content

Commit

Permalink
changed routes
Browse files Browse the repository at this point in the history
  • Loading branch information
OchiengPaul442 committed Dec 8, 2023
1 parent 210ea8b commit d8af796
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 11 deletions.
2 changes: 1 addition & 1 deletion netmanager/src/views/layouts/Landing.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React, { Component } from 'react';
import { Link } from 'react-router-dom';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import MapContainer from '../pages/Map/OverlayMap';
import MapContainer from '../pages/Heatmap/HeatMapOverlay';
import ErrorBoundary from 'views/ErrorBoundary/ErrorBoundary';
import Main from './Main';

Expand Down
12 changes: 2 additions & 10 deletions netmanager/src/views/pages/Heatmap/HeatMapOverlay.js
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,6 @@ const CustomMapControl = ({
className,
onPollutantChange,
showSensors,
showHeatmap,
showCalibratedValues,
onSensorChange,
onHeatmapChange,
Expand All @@ -347,17 +346,12 @@ const CustomMapControl = ({
<MapControllerPosition className={'custom-map-control'} position={'topRight'}>
<MapSettings
showSensors={showSensors}
showHeatmap={showHeatmap}
showCalibratedValues={showCalibratedValues}
onSensorChange={onSensorChange}
onHeatmapChange={onHeatmapChange}
onCalibratedChange={onCalibratedChange}
/>
<PollutantSelector
className={className}
onChange={onPollutantChange}
showHeatMap={showHeatmap}
/>
<PollutantSelector className={className} onChange={onPollutantChange} />
<MapStyleSelectorPlaceholder />
</MapControllerPosition>
);
Expand Down Expand Up @@ -582,7 +576,6 @@ export const OverlayMap = ({ center, zoom, heatMapData, monitoringSiteData }) =>
{map && (
<CustomMapControl
showSensors={showSensors}
showHeatmap={showHeatMap}
showCalibratedValues={showCalibratedValues}
onSensorChange={toggleSensors}
onCalibratedChange={setShowCalibratedValues}
Expand Down Expand Up @@ -615,7 +608,7 @@ const HeatMapOverlay = () => {
style={{
position: 'relative',
width: '100%',
height: '100vh'
height: '100%'
}}>
<OverlayMap
center={[22.5600613, 0.8341424]}
Expand All @@ -626,7 +619,6 @@ const HeatMapOverlay = () => {
{monitoringSiteData && isEmpty(monitoringSiteData.features) && (
<div
style={{
zIndex: 9999,
position: 'absolute',
top: 0,
left: 0,
Expand Down

0 comments on commit d8af796

Please sign in to comment.