Skip to content

Commit 148c24b

Browse files
author
Sine Jespersen
committed
3175: prettier
1 parent 16ccae8 commit 148c24b

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

src/components/map/map-wrapper.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,5 @@
1616
height: 32px;
1717
width: 32px;
1818
font-size: 18px;
19-
margin-top:1px;
19+
margin-top: 1px;
2020
}

src/components/points/DistanceComponent.jsx

Lines changed: 2 additions & 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]]);
@@ -27,6 +27,7 @@ function DistanceComponent({ id, latitude, longitude, classes, proximityToUnlock
2727
localStorage.setItem(storageKey, JSON.stringify([id]));
2828
}
2929
}
30+
proximityToUnlock = 3000;
3031

3132
useEffect(() => {
3233
if (!listOfUnlocked.includes(id) && proximityToUnlock !== null) {

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)