Merged in fix/3697-prettier-configs (pull request #3396)

fix(SW-3691): Setup one prettier config for whole repo

* Setup prettierrc in root and remove other configs


Approved-by: Joakim Jäderberg
Approved-by: Linus Flood
This commit is contained in:
Rasmus Langvad
2026-01-07 12:45:50 +00:00
parent 932413412b
commit d0546926a9
500 changed files with 18367 additions and 18419 deletions

View File

@@ -1,4 +1,4 @@
import { getUrlWithSignature } from './utils'
import { getUrlWithSignature } from "./utils"
export type StaticMapProps = {
city?: string
@@ -10,7 +10,7 @@ export type StaticMapProps = {
width: number
height: number
zoomLevel?: number
mapType?: 'roadmap' | 'satellite' | 'terrain' | 'hybrid'
mapType?: "roadmap" | "satellite" | "terrain" | "hybrid"
altText: string
mapId?: string
googleMapKey: string
@@ -45,7 +45,7 @@ export default async function StaticMap({
width,
height,
zoomLevel = 14,
mapType = 'roadmap',
mapType = "roadmap",
altText,
mapId,
googleMapKey,
@@ -53,7 +53,7 @@ export default async function StaticMap({
}: StaticMapProps) {
// const key = env.GOOGLE_STATIC_MAP_KEY
// const secret = env.GOOGLE_STATIC_MAP_SIGNATURE_SECRET
const baseUrl = 'https://maps.googleapis.com/maps/api/staticmap'
const baseUrl = "https://maps.googleapis.com/maps/api/staticmap"
const center = getCenter({ coordinates, city, country })
if (!center) {
@@ -66,7 +66,7 @@ export default async function StaticMap({
)
if (mapId) {
url.searchParams.append('map_id', mapId)
url.searchParams.append("map_id", mapId)
}
const src = getUrlWithSignature(url, googleMapSecret)