Skip to content

Commit

Permalink
Revert "removed fullscreen button"
Browse files Browse the repository at this point in the history
This reverts commit 7b6a6e1.
  • Loading branch information
Bionic1251 committed Dec 12, 2023
1 parent ee671d8 commit a16d9e4
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion recommender-front/src/components/map/MapComponent.jsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
import React from 'react';
import { MapContainer, TileLayer, Polyline } from 'react-leaflet';
import FullscreenIcon from '@mui/icons-material/Fullscreen';
import FullscreenExitIcon from '@mui/icons-material/FullscreenExit';
import MarkersComponent from './MarkersComponent';
import UserLocationMarker from './UserLocationComponent';
import LocateButton from '../buttons/LocateButton';
import '../../assets/style.css';

function MapComponent({
poiData, time, handleSetOrigin, userPosition, handleSetDestination, routeCoordinates,
headerHidden,
headerHidden, toggleHeader,
}) {
const position = [60.2049, 24.9649];
const minZoom = 12;
Expand All @@ -17,6 +19,9 @@ function MapComponent({

return (
<div className={`map-container${headerHidden ? ' fullscreen' : ''}`}>
<button type="button" className="toggle-header-button" onClick={toggleHeader}>
{headerHidden ? <FullscreenIcon /> : <FullscreenExitIcon />}
</button>
<MapContainer
id="map"
center={position}
Expand Down

0 comments on commit a16d9e4

Please sign in to comment.