Change fragment to view with testID

This commit is contained in:
Amanda Bullington
2023-01-12 17:06:50 -08:00
parent 9b1e6d7c11
commit 077cd507cb

View File

@@ -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>
);
};