# <LandmarkDetails />
Component that renders the details of a selected Landmark and allows the user to edit those details. Contained within a react-native-modal.
Members
# inner constant renderComment
Methods
# static resetDeleteMutationOnSuccess()
Resets the deleteLandmark
mutation on successful delete.
Embedded in a useEffect that listens to the deleteLandmarkStatus
value from the useLandmarks hook.
# static resetUpdateMutationOnSuccess()
Resets the updateLandmark
mutation on successful add.
Embedded in a useEffect that listens to the updateLandmarkStatus
value from the useLandmarks hook.
# static updateLandmarkStateFromParent()
Updates this component's selectedLandmarkState
when the landmark
prop passed down from the parent Map's selectedLandmark
is changed.
Embedded in a useEffect that listens to the landmark
prop.
# async inner editLandmark()
Calls the updateLandmark
mutation from the useLandmarks hook and closes the modal once finished.
# async inner removeLandmark()
Calls the deleteLandmark
mutation from the useLandmarks hook and closes the modal once finished.
# inner toggleEditing()
Toggles whether or not the selectedLandmark
can be edited through the editingEnabled
prop.