diff --git a/src/index.tsx b/src/index.tsx index e7c7b46a..f49a525f 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -6,7 +6,7 @@ import { createMap, getMap, setMap } from '@/map/map' import MapFeatureStore from '@/stores/MapFeatureStore' import SettingsStore from '@/stores/SettingsStore' import { SpeechSynthesizerImpl } from '@/SpeechSynthesizer' -import {getTranslation, setTranslation} from '@/translation/Translation' +import { getTranslation, setTranslation } from '@/translation/Translation' import { getApi, setApi } from '@/api/Api' import QueryStore from '@/stores/QueryStore' import RouteStore from '@/stores/RouteStore' @@ -34,9 +34,9 @@ import NavBar from '@/NavBar' import POIsStore from '@/stores/POIsStore' import { initDistanceFormat } from '@/Converters' import { AddressParseResult } from '@/pois/AddressParseResult' -import {Pixel} from "ol/pixel"; -import {toLonLat} from "ol/proj"; -import {ErrorAction, InfoReceived, LocationUpdateSync} from "@/actions/Actions"; +import { Pixel } from 'ol/pixel' +import { toLonLat } from 'ol/proj' +import { ErrorAction, InfoReceived, LocationUpdateSync } from '@/actions/Actions' console.log(`Source code: https://github.com/graphhopper/graphhopper-maps/tree/${GIT_SHA}`) diff --git a/src/sidebar/MobileSidebar.tsx b/src/sidebar/MobileSidebar.tsx index 6a9184b7..323194a6 100644 --- a/src/sidebar/MobileSidebar.tsx +++ b/src/sidebar/MobileSidebar.tsx @@ -24,7 +24,15 @@ type MobileSidebarProps = { turnNavigationSettings: TNSettingsState } -export default function ({ query, route, error, encodedValues, drawAreas, map, turnNavigationSettings }: MobileSidebarProps) { +export default function ({ + query, + route, + error, + encodedValues, + drawAreas, + map, + turnNavigationSettings, +}: MobileSidebarProps) { const [showCustomModelBox, setShowCustomModelBox] = useState(false) // the following three elements control, whether the small search view is displayed const isShortScreen = useMediaQuery({ query: '(max-height: 55rem)' }) diff --git a/test/stores/TurnNavigationStore.test.ts b/test/stores/TurnNavigationStore.test.ts index 96a4cd46..ff9b71ea 100644 --- a/test/stores/TurnNavigationStore.test.ts +++ b/test/stores/TurnNavigationStore.test.ts @@ -17,14 +17,15 @@ import { RawResult, ReverseGeocodingHit, RoutingArgs, - RoutingResult, TagHash + RoutingResult, + TagHash, } from '@/api/graphhopper' import Api, { ApiImpl } from '@/api/Api' import { setTranslation } from '@/translation/Translation' import { Coordinate } from '@/stores/QueryStore' import { Pixel } from 'ol/pixel' import SettingsStore from '@/stores/SettingsStore' -import {POIQuery} from "@/pois/AddressParseResult"; +import { POIQuery } from '@/pois/AddressParseResult' let routeWithVia = toRoutingResult(require('../turnNavigation/response-hoyerswerda2.json')) let reroute1 = toRoutingResult(require('../turnNavigation/reroute1.json'))