Remove Explore back btn when hidden; make sure positional accuracy gets fetched before Suggestions

This commit is contained in:
Ken-ichi Ueda
2024-03-28 17:41:41 -07:00
parent c21d28ac8e
commit d6846de8df
5 changed files with 10 additions and 11 deletions

View File

@@ -71,6 +71,7 @@ const usePrepareStoreAndNavigate = (
if ( location?.latitude ) {
newObservation.latitude = location?.latitude;
newObservation.longitude = location?.longitude;
newObservation.positional_accuracy = location?.positional_accuracy;
}
newObservation.observationPhotos = await ObservationPhoto
.createObsPhotosWithPosition( localFilePaths, {

View File

@@ -58,14 +58,12 @@ const Header = ( {
<Surface style={surfaceStyle} elevation={5}>
<View className="bg-white px-6 py-4 flex-row justify-between items-center">
<View className="flex-1 flex-row">
{!hideBackButton
? (
<BackButton
inCustomHeader
testID="Explore.BackButton"
/>
)
: <View className="w-[44px]" />}
{!hideBackButton && (
<BackButton
inCustomHeader
testID="Explore.BackButton"
/>
) }
<View>
{taxon
? (

View File

@@ -169,7 +169,7 @@ Community-Moderation-Settings = Community Moderation Settings
CONFIRM = CONFIRM
Connect-with-other-naturalists = Connect with other naturalists and engage in conversations.
Connected-Accounts = Connected Accounts
Connection-problem-please-try-again-later = Connection problem. Please try again later.
Connection-problem-Please-try-again-later = Connection problem. Please try again later.
CONTACT-SUPPORT = CONTACT SUPPORT
Content-Display = Content & Display
Coordinates-copied-to-keyboard = Coordinates copied to keyboard

View File

@@ -190,7 +190,7 @@
"CONFIRM": "CONFIRM",
"Connect-with-other-naturalists": "Connect with other naturalists and engage in conversations.",
"Connected-Accounts": "Connected Accounts",
"Connection-problem-please-try-again-later": "Connection problem. Please try again later.",
"Connection-problem-Please-try-again-later": "Connection problem. Please try again later.",
"CONTACT-SUPPORT": "CONTACT SUPPORT",
"Content-Display": "Content & Display",
"Coordinates-copied-to-keyboard": "Coordinates copied to keyboard",

View File

@@ -169,7 +169,7 @@ Community-Moderation-Settings = Community Moderation Settings
CONFIRM = CONFIRM
Connect-with-other-naturalists = Connect with other naturalists and engage in conversations.
Connected-Accounts = Connected Accounts
Connection-problem-please-try-again-later = Connection problem. Please try again later.
Connection-problem-Please-try-again-later = Connection problem. Please try again later.
CONTACT-SUPPORT = CONTACT SUPPORT
Content-Display = Content & Display
Coordinates-copied-to-keyboard = Coordinates copied to keyboard