From 6d00039e2ab267957cf156bdc221d40ae2ef9b29 Mon Sep 17 00:00:00 2001 From: GabrielTrettel Date: Fri, 29 Oct 2021 18:29:31 -0300 Subject: [PATCH] Show warning in sharing data for unregistered users --- src/app/screens/SharingDataScreen.js | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/src/app/screens/SharingDataScreen.js b/src/app/screens/SharingDataScreen.js index d525937..4e4e99c 100644 --- a/src/app/screens/SharingDataScreen.js +++ b/src/app/screens/SharingDataScreen.js @@ -1,11 +1,12 @@ import React, { useEffect, useState, useContext } from "react"; -import { StyleSheet, View } from "react-native"; +import { StyleSheet, View, Text } from "react-native"; import ConfirmationModal from "../components/ConfirmationModal"; import { ScrollView } from "react-native"; import assets from "../config/assets"; import { dimensions } from "../config/dimensions"; import SvgLabeledButton from "../components/SvgLabeledButton"; import { AuthContext } from "../auth/context"; +import colors from "../config/colors"; function SharingDataScreen({ navigation }) { const authContext = useContext(AuthContext); @@ -75,6 +76,21 @@ function SharingDataScreen({ navigation }) { /> + {!isRegistered && ( + + Para enviar uma informação, faça o login ou cadastre-se + + )} ); }