diff --git a/src/Components/Input/ComboBoxInput.tsx b/src/Components/Input/ComboBoxInput.tsx index 91b49d88..3491102d 100644 --- a/src/Components/Input/ComboBoxInput.tsx +++ b/src/Components/Input/ComboBoxInput.tsx @@ -1,20 +1,15 @@ -import { useState } from 'react' import * as React from 'react' interface ComboBoxProps { id?: string - options: { value: string; label: string }[] + options: string[] value: string onValueChange: (newValue: string) => void } const ComboBoxInput = ({ id, options, value, onValueChange }: ComboBoxProps) => { - // eslint-disable-next-line no-unused-vars - const [selectedValue, setSelectedValue] = useState(value) - const handleChange = (e: React.ChangeEvent) => { const value = e.target.value - setSelectedValue(value) onValueChange(value) } @@ -25,8 +20,8 @@ const ComboBoxInput = ({ id, options, value, onValueChange }: ComboBoxProps) => onChange={handleChange} > {options.map((o) => ( - ))} diff --git a/src/Components/Map/Subcomponents/ItemPopupComponents/PopupStartEndInput.tsx b/src/Components/Map/Subcomponents/ItemPopupComponents/PopupStartEndInput.tsx index 4a728ee0..d2b84100 100644 --- a/src/Components/Map/Subcomponents/ItemPopupComponents/PopupStartEndInput.tsx +++ b/src/Components/Map/Subcomponents/ItemPopupComponents/PopupStartEndInput.tsx @@ -16,7 +16,7 @@ export const PopupStartEndInput = ({ updateEndValue, }: StartEndInputProps) => { return ( -
+
) } diff --git a/src/Components/Map/UtopiaMap.css b/src/Components/Map/UtopiaMap.css index 389e3469..5ab6dc05 100644 --- a/src/Components/Map/UtopiaMap.css +++ b/src/Components/Map/UtopiaMap.css @@ -120,6 +120,20 @@ left: 4px; width: 24px; } + + .flower-icon { + position: relative; + top: -35px; + left: 4px; + width: 24px; + } + + .network-icon { + position: relative; + top: -35px; + left: 4px; + width: 24px; + } .leaflet-popup-scrolled { overflow-x: hidden; diff --git a/src/Components/Profile/ProfileForm.tsx b/src/Components/Profile/ProfileForm.tsx index 97c0794d..261414bb 100644 --- a/src/Components/Profile/ProfileForm.tsx +++ b/src/Components/Profile/ProfileForm.tsx @@ -108,8 +108,8 @@ export function ProfileForm() { setState({ color: newColor, id: item?.id ?? '', - group_type: item?.group_type ?? 'wuerdekompass', - status: item?.status ?? 'active', + group_type: item?.group_type ?? '', + status: item?.status ?? '', name: item?.name ?? '', subname: item?.subname ?? '', text: item?.text ?? '', @@ -165,7 +165,7 @@ export function ProfileForm() { > )} -
+