diff --git a/admin/inertia/components/maps/CreateMapMarkerPopup.tsx b/admin/inertia/components/maps/CreateMapMarkerPopup.tsx deleted file mode 100644 index b55c66f..0000000 --- a/admin/inertia/components/maps/CreateMapMarkerPopup.tsx +++ /dev/null @@ -1,115 +0,0 @@ -import { Popup } from 'react-map-gl/maplibre' - -import { PIN_COLORS } from '~/hooks/useMapMarkers' -import type { PinColorId } from '~/hooks/useMapMarkers' - -const MAX_MARKER_NOTES_LENGTH = 1000 - -const inputClass = - 'block w-full appearance-none rounded border border-gray-300 bg-transparent px-2 py-1 text-sm text-gray-900 leading-normal placeholder:text-gray-400 focus:border-gray-500 focus:outline-none' - -type CreateMapMarkerPopupProps = { - longitude: number - latitude: number - markerName: string - markerNotes: string - markerColor: PinColorId - onNameChange: (value: string) => void - onNotesChange: (value: string) => void - onColorChange: (value: PinColorId) => void - onSave: () => void - onCancel: () => void -} - -export default function CreateMapMarkerPopup({ - longitude, - latitude, - markerName, - markerNotes, - markerColor, - onNameChange, - onNotesChange, - onColorChange, - onSave, - onCancel, - }: CreateMapMarkerPopupProps) { - return ( - -
- onNameChange(e.target.value)} - onKeyDown={(e) => { - if (e.key === 'Enter') onSave() - if (e.key === 'Escape') onCancel() - }} - className={inputClass} - /> - -