From 941ab2276b1ad549c360ada68417b10f2b967640 Mon Sep 17 00:00:00 2001 From: ISA Date: Tue, 17 Sep 2024 07:30:47 +0200 Subject: [PATCH] =?UTF-8?q?feat(poi):=20Implementiere=20und=20style=20reac?= =?UTF-8?q?t-select=20f=C3=BCr=20Ger=C3=A4te-=20und=20POI-Typ-Felder=20in?= =?UTF-8?q?=20Add-=20und=20Update-POI-Modalen?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Integriere react-select für eine benutzerfreundlichere Auswahl der Geräte und POI-Typen. - Anwende benutzerdefinierte Styles, um eine einheitliche und übersichtliche Darstellung der Dropdowns zu gewährleisten. - Sicherstellung, dass Platzhalter ("Gerät auswählen..." und "Typ auswählen...") immer angezeigt werden. - Bereinige das Layout für eine konsistente Benutzererfahrung in beiden Modalen. --- components/pois/AddPoiModalWindow.js | 39 +++++++++++++++------------- components/pois/PoiUpdateModal.js | 16 +++++++----- 2 files changed, 30 insertions(+), 25 deletions(-) diff --git a/components/pois/AddPoiModalWindow.js b/components/pois/AddPoiModalWindow.js index 1120efd6e..ddb2dbf38 100644 --- a/components/pois/AddPoiModalWindow.js +++ b/components/pois/AddPoiModalWindow.js @@ -25,10 +25,6 @@ const AddPoiModalWindow = ({ onClose, map, latlng }) => { const locationDeviceData = await locationDeviceResponse.json(); setLocationDeviceData(locationDeviceData); - - if (locationDeviceData.length > 0) { - setDeviceName({ value: locationDeviceData[0].name, label: locationDeviceData[0].name }); // Set initial device name - } } catch (error) { console.error("Fehler beim Abrufen der Daten:", error); } @@ -102,16 +98,20 @@ const AddPoiModalWindow = ({ onClose, map, latlng }) => { return (
-
-