diff --git a/frontend/src/components/AddLocationModal.tsx b/frontend/src/components/AddLocationModal.tsx index 00d68b4..ae7d47d 100644 --- a/frontend/src/components/AddLocationModal.tsx +++ b/frontend/src/components/AddLocationModal.tsx @@ -45,13 +45,13 @@ const MapPicker = ({ onPick, center }: { onPick: (latlng: L.LatLng) => void, cen {menuPos && (
@@ -387,18 +387,18 @@ export const AddLocationModal = ({ isOpen, onClose, tourId, initialLegId, editin return (
-
+
-

+

{titleText}

-
{/* Mini Map Picker */} -
+
{/* Map Search Bar Overlay - Tích hợp tìm kiếm trực tiếp trên bản đồ */}
@@ -406,7 +406,7 @@ export const AddLocationModal = ({ isOpen, onClose, tourId, initialLegId, editin handleSearchLocation(e.target.value)} /> @@ -417,7 +417,7 @@ export const AddLocationModal = ({ isOpen, onClose, tourId, initialLegId, editin @@ -426,24 +426,24 @@ export const AddLocationModal = ({ isOpen, onClose, tourId, initialLegId, editin {/* Dropdown kết quả tìm kiếm ngay trong khung bản đồ */} {(searchResults.length > 0 || hasNoResults) && ( -
+
{hasNoResults ? ( -
Không tìm thấy địa điểm phù hợp...
+
Không tìm thấy địa điểm phù hợp...
) : ( searchResults.map((result, idx) => ( )) )} @@ -457,7 +457,7 @@ export const AddLocationModal = ({ isOpen, onClose, tourId, initialLegId, editin -
+
CHUỘT PHẢI ĐỂ CHỌN VỊ TRÍ
@@ -475,23 +475,23 @@ export const AddLocationModal = ({ isOpen, onClose, tourId, initialLegId, editin
- + setFormData({...formData, name: e.target.value})} />
- - Address + setFormData({...formData, address: e.target.value})} />
- -