Skip to content

Commit 379251f

Browse files
author
Sine Jespersen
committed
3175: pertier
1 parent cbaf638 commit 379251f

File tree

4 files changed

+4
-8
lines changed

4 files changed

+4
-8
lines changed

src/components/map/MapComponent.jsx

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,7 @@ function MapComponent({ mapData, additionalClass = "", withIndex }) {
2323
if (outerBounds === null) return null;
2424

2525
return (
26-
<MapContainer
27-
bounds={outerBounds}
28-
className={`${additionalClass} rounded`}
29-
scrollWheelZoom={true}
30-
>
26+
<MapContainer bounds={outerBounds} className={`${additionalClass} rounded`} scrollWheelZoom={true}>
3127
<TileLayer
3228
attribution='&copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors'
3329
url="https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png"

src/components/map/MapMarker.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Marker } from "react-leaflet";
1+
import { Marker } from "react-leaflet";
22
import L from "leaflet";
33

44
const MapMarker = ({ iconHtml, latitude, longitude }) => {

src/components/points/DistanceComponent.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ function DistanceComponent({ id, latitude, longitude, classes, proximityToUnlock
88
const { lat, long } = useContext(LatLongContext);
99
const distance = useMemo(
1010
() => getDistanceBetweenCoordinates(lat, long, latitude, longitude),
11-
[lat, long, latitude, longitude]
11+
[lat, long, latitude, longitude],
1212
);
1313
function unlockThisPoint() {
1414
setListOfUnlocked([...listOfUnlocked, ...[id]]);

src/util/helper.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ export function sortByProximity(routes, lat, long) {
4343
element.points[0].latitude || 0,
4444
element.points[0].longitude || 0,
4545
lat,
46-
long
46+
long,
4747
),
4848
};
4949
});

0 commit comments

Comments
 (0)