Browse Source

erasing 'Termos de uso' from registration screen - only for testing purposes

master
analuizaff 3 years ago
parent
commit
5e9f74b7c7
  1. 12
      src/app/screens/RegisterScreen.js

12
src/app/screens/RegisterScreen.js

@ -346,9 +346,7 @@ export default function RegisterScreen(props) {
comparePassword(form.password, form.confirmPassword); comparePassword(form.password, form.confirmPassword);
fieldsAreNotInUse(form, actions).then((isNotUsed) => { fieldsAreNotInUse(form, actions).then((isNotUsed) => {
isNotUsed
? handleSubmit(form)
: setShowLog(true)
isNotUsed ? handleSubmit(form) : setShowLog(true);
// NOTE: this woud be nice, but does not work... // NOTE: this woud be nice, but does not work...
// : scroll.scrollTo({ // : scroll.scrollTo({
// x: 0, // x: 0,
@ -502,18 +500,18 @@ export default function RegisterScreen(props) {
paddingLeft={2} paddingLeft={2}
/> />
</View> </View>
<Text style={styles.labelStyle}>Termos de uso*</Text>
{/*<Text style={styles.labelStyle}>Termos de uso*</Text>
<View <View
flexDirection="column" flexDirection="column"
alignItems={"flex-start"} alignItems={"flex-start"}
marginBottom={24} marginBottom={24}
marginTop={12} marginTop={12}
> >
{ /*<Checkbox
<Checkbox
name={"consent"} name={"consent"}
navigate={() => props.navigation.navigate("UserAgreement")} navigate={() => props.navigation.navigate("UserAgreement")}
/>*/}
</View>
/>
</View>*/}
<SubmitButton <SubmitButton
flex={1} flex={1}
title="cadastrar" title="cadastrar"

Loading…
Cancel
Save