|
@@ -32,6 +32,7 @@ export interface AddLandmarkProps {
|
|
|
* The {@link landmark} object to be added.
|
|
|
*/
|
|
|
newLandmark?: Landmark;
|
|
|
+ indoorLmLocImg?: string;
|
|
|
/**
|
|
|
* The state updater for the new {@link landmark} to be added.
|
|
|
*/
|
|
@@ -48,7 +49,7 @@ export interface AddLandmarkProps {
|
|
|
* @component
|
|
|
* @category Map
|
|
|
*/
|
|
|
-const AddLandmarkPanel: React.FC<AddLandmarkProps> = ({newLandmark, setNewLandmark, setVisible, visible}) => {
|
|
|
+const AddLandmarkPanel: React.FC<AddLandmarkProps> = ({newLandmark, setNewLandmark, setVisible, visible, indoorLmLocImg}) => {
|
|
|
const [photos, setPhotos] = useState<LMPhoto[]>([])
|
|
|
const [photoSourceMenuOpened, togglePhotoSourceMenu] = useState<boolean>(false)
|
|
|
|
|
@@ -80,7 +81,7 @@ const AddLandmarkPanel: React.FC<AddLandmarkProps> = ({newLandmark, setNewLandma
|
|
|
* Calls {@link addLandmarkAsync} from {@link useLandmarks} to initate the process of adding a landmark, then closes the modal.
|
|
|
*/
|
|
|
const submit = async () => {
|
|
|
- await addLandmarkAsync({landmarkValue: newLandmark, photos: photos})
|
|
|
+ await addLandmarkAsync({landmarkValue: newLandmark, photos: photos, indoorLmLocImg: indoorLmLocImg});
|
|
|
close()
|
|
|
}
|
|
|
|