mirror of
https://github.com/inaturalist/iNaturalistReactNative.git
synced 2026-06-20 21:48:42 -04:00
Change fragment to view with testID
This commit is contained in:
@@ -4,7 +4,7 @@ import Button from "components/SharedComponents/Buttons/Button";
|
||||
import { t } from "i18next";
|
||||
import type { Node } from "react";
|
||||
import React from "react";
|
||||
import { Text } from "react-native";
|
||||
import { Text, View } from "react-native";
|
||||
import useNumUnuploadedObservations from "sharedHooks/useNumUnuploadedObservations";
|
||||
|
||||
type Props = {
|
||||
@@ -14,7 +14,7 @@ type Props = {
|
||||
const UploadPrompt = ( { startUpload }: Props ): Node => {
|
||||
const numUnuploadedObs = useNumUnuploadedObservations( );
|
||||
return (
|
||||
<>
|
||||
<View testID="UploadPrompt">
|
||||
<Text>{t( "Whenever-you-get-internet-connection-you-can-upload" )}</Text>
|
||||
<Button
|
||||
level="neutral"
|
||||
@@ -22,7 +22,7 @@ const UploadPrompt = ( { startUpload }: Props ): Node => {
|
||||
className="py-1 mt-5"
|
||||
onPress={startUpload}
|
||||
/>
|
||||
</>
|
||||
</View>
|
||||
);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user