From 26404eb2095523819a8d739095ff133ec0eef536 Mon Sep 17 00:00:00 2001 From: Fredrik Thorsson Date: Mon, 12 Aug 2024 09:43:41 +0200 Subject: [PATCH] feat(SW-68): use img instead of next image --- components/Maps/StaticMap/index.tsx | 13 ++----------- next.config.js | 5 ----- 2 files changed, 2 insertions(+), 16 deletions(-) diff --git a/components/Maps/StaticMap/index.tsx b/components/Maps/StaticMap/index.tsx index 8d481858d..34c39c657 100644 --- a/components/Maps/StaticMap/index.tsx +++ b/components/Maps/StaticMap/index.tsx @@ -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 ( - {`Map - ) + return {`Map } diff --git a/next.config.js b/next.config.js index 037649b65..60e5a38d9 100644 --- a/next.config.js +++ b/next.config.js @@ -41,11 +41,6 @@ const nextConfig = { protocol: "https", hostname: "imagevault.scandichotels.com", }, - { - protocol: "https", - hostname: "maps.googleapis.com", - pathname: "/maps/api/staticmap?**", - }, ], },