feat(SW-68): use img instead of next image
This commit is contained in:
@@ -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`} />
|
||||
}
|
||||
|
||||
@@ -41,11 +41,6 @@ const nextConfig = {
|
||||
protocol: "https",
|
||||
hostname: "imagevault.scandichotels.com",
|
||||
},
|
||||
{
|
||||
protocol: "https",
|
||||
hostname: "maps.googleapis.com",
|
||||
pathname: "/maps/api/staticmap?**",
|
||||
},
|
||||
],
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user