feat: GeocoderFeature mit Feature Toggle und Anpassungen integriert - GeocoderFeature als separates Modul implementiert und initialisiert. - Feature Toggle für Geocoder in .env.local hinzugefügt (NEXT_PUBLIC_ENABLE_GEOCODER). - Dynamische Aktivierung des Geocoders über MapComponent.js basierend auf Feature-Flag. - Anpassungen zur Entfernung bzw. Anpassung der Fehlermeldung "Nothing found". - Styling-Verbesserungen für das Suchfeld mit Tailwind CSS.
27 lines
923 B
JavaScript
27 lines
923 B
JavaScript
// components/pois/PoiUpdateModalWrapper.js
|
|
import React, { useState } from "react";
|
|
import PoiUpdateModal from "./PoiUpdateModal";
|
|
import { useRecoilValue, useSetRecoilState } from "recoil";
|
|
import { currentPoiState, selectedPoiState } from "../../redux/slices/currentPoiSlice";
|
|
import { poiReadFromDbTriggerAtom } from "../../redux/slices/poiReadFromDbTriggerSlice";
|
|
|
|
const PoiUpdateModalWrapper = ({ show, onClose, latlng }) => {
|
|
const setSelectedPoi = useSetRecoilState(selectedPoiState);
|
|
const setCurrentPoi = useSetRecoilState(currentPoiState);
|
|
const currentPoi = useRecoilValue(currentPoiState);
|
|
const poiReadTrigger = useRecoilValue(poiReadFromDbTriggerAtom);
|
|
|
|
return (
|
|
show && (
|
|
<PoiUpdateModal
|
|
onClose={onClose}
|
|
poiData={currentPoi}
|
|
onSubmit={() => {}} // Add your submit logic here
|
|
latlng={latlng}
|
|
/>
|
|
)
|
|
);
|
|
};
|
|
|
|
export default PoiUpdateModalWrapper;
|