feat(SW-68): use img instead of next image

This commit is contained in:
Fredrik Thorsson
2024-08-12 09:43:41 +02:00
parent ef1631be1a
commit 26404eb209
2 changed files with 2 additions and 16 deletions

View File

@@ -1,5 +1,4 @@
import Image from "@/components/Image"
/* eslint-disable @next/next/no-img-element */
import { StaticMapProps } from "@/types/components/maps/staticMap/staticMap"
export default function StaticMap({
@@ -12,13 +11,5 @@ export default function StaticMap({
const apiKey = process.env.NEXT_PUBLIC_GOOGLE_STATIC_MAP_KEY
const mapUrl = `https://maps.googleapis.com/maps/api/staticmap?center=${city}&zoom=${zoomLevel}&size=${width}x${height}&maptype=${mapType}&key=${apiKey}`
return (
<Image
src=""
overrideSrc={mapUrl}
alt={`Map of ${city} city center`}
width={width}
height={height}
/>
)
return <img src={mapUrl} alt={`Map of ${city} city center`} />
}

View File

@@ -41,11 +41,6 @@ const nextConfig = {
protocol: "https",
hostname: "imagevault.scandichotels.com",
},
{
protocol: "https",
hostname: "maps.googleapis.com",
pathname: "/maps/api/staticmap?**",
},
],
},