Skip to content

Commit

Permalink
Hotfix for broken selector import (phlask#506)
Browse files Browse the repository at this point in the history
* Hotfix for broken selector import

* Prefer relative imports, relative to the directory of file
  • Loading branch information
ravicodelabs authored Aug 6, 2024
1 parent 8e14ec6 commit 9f5c697
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/Toolbar/Toolbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ import Box from '@mui/material/Box';
import { resourceTypeSelector } from '../../selectors/filterMarkersSelectors';
import ResourceMenu from '../ResourceMenu/ResourceMenu';
import NavigationItem from './NavigationItem';
import useIsMobile from 'hooks/useIsMobile';
import selectFilteredResource from '../../selectors/waterSelectors';
import useIsMobile from '../../hooks/useIsMobile';
import selectFilteredResource from '../../selectors/resourceSelectors';

// Actual Magic: https://stackoverflow.com/a/41337005
// Distance calculates the distance between two lat/lon pairs
Expand All @@ -53,7 +53,7 @@ function distance(lat1, lon1, lat2, lon2) {
(Math.cos(lat1 * p) *
Math.cos(lat2 * p) *
(1 - Math.cos((lon2 - lon1) * p))) /
2;
2;
return 12742 * Math.asin(Math.sqrt(a));
}

Expand Down

0 comments on commit 9f5c697

Please sign in to comment.