Skip to content

Commit

Permalink
Remove Footer & Organization Banner in Live Monitoring
Browse files Browse the repository at this point in the history
- Related to #6219
  • Loading branch information
royallsilwallz committed Jan 25, 2024
1 parent beb3578 commit 66ed8a6
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions frontend/src/components/footer/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ export function Footer() {
'projects/:id/tasks',
'projects/:id/map',
'projects/:id/validate',
'projects/:id/live',
'manage/organisations/new/',
'manage/teams/new',
'manage/campaigns/new',
Expand Down
10 changes: 10 additions & 0 deletions frontend/src/views/projectLiveMonitoring.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import {
UnderpassValidationStats,
} from '@hotosm/underpass-ui';
import { Link } from 'react-router-dom';
import { useDispatch } from 'react-redux';

import { ProjectVisibilityBox } from '../components/projectDetail/visibilityBox';
import { ProjectStatusBox } from '../components/projectDetail/statusBox';
Expand Down Expand Up @@ -89,6 +90,7 @@ const mappingTypesFeatureTypes = {

export function ProjectLiveMonitoring() {
const { id } = useParams();
const dispatch = useDispatch();
const [coords, setCoords] = useState([0, 0]);
const [activeFeature, setActiveFeature] = useState(null);
const [tags, setTags] = useState('building');
Expand Down Expand Up @@ -170,6 +172,14 @@ export function ProjectLiveMonitoring() {
}
}, [project]);

// set organization bar visibility to false
useEffect(() => {
dispatch({ type: 'SET_VISIBILITY', isVisible: false });
return () => {
dispatch({ type: 'SET_VISIBILITY', isVisible: true });
};
}, [dispatch]);

const hottheme = HOTTheme();

const defaultMapStyle = {
Expand Down

0 comments on commit 66ed8a6

Please sign in to comment.