Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
karussell committed Aug 24, 2024
1 parent 0174133 commit 674a473
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 7 deletions.
8 changes: 4 additions & 4 deletions src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down Expand Up @@ -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}`)

Expand Down
10 changes: 9 additions & 1 deletion src/sidebar/MobileSidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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)' })
Expand Down
5 changes: 3 additions & 2 deletions test/stores/TurnNavigationStore.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'))
Expand Down

0 comments on commit 674a473

Please sign in to comment.