From 9b2a2a2901ab7cf65363f30bd828d9e9f385bac5 Mon Sep 17 00:00:00 2001 From: Pablo Gracia Gil Date: Wed, 6 Nov 2024 19:24:43 +0100 Subject: [PATCH] Remove server import in a client component --- src/app/casos-activos/mapa/page.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/app/casos-activos/mapa/page.js b/src/app/casos-activos/mapa/page.js index ac40b7ce..c9d6fe46 100644 --- a/src/app/casos-activos/mapa/page.js +++ b/src/app/casos-activos/mapa/page.js @@ -6,7 +6,6 @@ import SolicitudCard from '@/components/SolicitudCard'; import { useRouter, useSearchParams } from 'next/navigation'; import { tiposAyudaOptions } from '@/helpers/constants'; import Map from '@/components/map/map'; -import ReactDOMServer from 'react-dom/server'; import PickupPoint from '@/components/PickupPoint'; import { useTowns } from '@/context/TownProvider'; @@ -50,9 +49,7 @@ export default function Mapa() { urgency: request.urgency, coordinates: [request.longitude ?? 0, request.latitude ?? 0], width: '600px', - descriptionHTML: ReactDOMServer.renderToString( - , - ), + descriptionHTML: , }; } @@ -61,7 +58,7 @@ export default function Mapa() { urgency: point.urgency || 'baja', coordinates: [point.longitude ?? 0, point.latitude ?? 0], width: '600px', - descriptionHTML: ReactDOMServer.renderToString(), + descriptionHTML: , }; }