Browse Source

Show warning in sharing data for unregistered users

master
GabrielTrettel 3 years ago
parent
commit
6d00039e2a
  1. 18
      src/app/screens/SharingDataScreen.js

18
src/app/screens/SharingDataScreen.js

@ -1,11 +1,12 @@
import React, { useEffect, useState, useContext } from "react"; 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 ConfirmationModal from "../components/ConfirmationModal";
import { ScrollView } from "react-native"; import { ScrollView } from "react-native";
import assets from "../config/assets"; import assets from "../config/assets";
import { dimensions } from "../config/dimensions"; import { dimensions } from "../config/dimensions";
import SvgLabeledButton from "../components/SvgLabeledButton"; import SvgLabeledButton from "../components/SvgLabeledButton";
import { AuthContext } from "../auth/context"; import { AuthContext } from "../auth/context";
import colors from "../config/colors";
function SharingDataScreen({ navigation }) { function SharingDataScreen({ navigation }) {
const authContext = useContext(AuthContext); const authContext = useContext(AuthContext);
@ -75,6 +76,21 @@ function SharingDataScreen({ navigation }) {
/> />
</View> </View>
</ScrollView> </ScrollView>
{!isRegistered && (
<Text
style={{
color: colors.lightBlue,
fontWeight: "bold",
alignSelf: "center",
position: "absolute",
bottom: 0,
padding: 24,
textAlign: "center",
}}
>
Para enviar uma informação, faça o login ou cadastre-se
</Text>
)}
</View> </View>
); );
} }

Loading…
Cancel
Save