Skip to content

Commit

Permalink
removed fullscreen button
Browse files Browse the repository at this point in the history
  • Loading branch information
Bionic1251 committed Dec 11, 2023
1 parent 216360b commit 7b6a6e1
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions recommender-front/src/components/map/MapComponent.jsx
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
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, toggleHeader,
headerHidden,
}) {
const position = [60.2049, 24.9649];
const minZoom = 12;
Expand All @@ -19,9 +17,6 @@ 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 7b6a6e1

Please sign in to comment.