mirror of
https://github.com/balzack/databag.git
synced 2025-02-12 03:29:16 +00:00
removing tos from ios as not required
This commit is contained in:
parent
4db08d7ebe
commit
5a0a2a8af2
@ -1,4 +1,4 @@
|
||||
import { KeyboardAvoidingView, ScrollView, ActivityIndicator, Alert, Modal, Text, TextInput, View, TouchableOpacity } from 'react-native';
|
||||
import { Platform, KeyboardAvoidingView, ScrollView, ActivityIndicator, Alert, Modal, Text, TextInput, View, TouchableOpacity } from 'react-native';
|
||||
import { styles } from './Create.styled';
|
||||
import Ionicons from 'react-native-vector-icons/AntDesign';
|
||||
import { useCreate } from './useCreate.hook';
|
||||
@ -138,23 +138,25 @@ export function Create() {
|
||||
</View>
|
||||
)}
|
||||
|
||||
<View style={styles.tos}>
|
||||
<TouchableOpacity style={styles.viewterms} onPress={actions.showTerms}>
|
||||
<Text style={styles.viewtermstext}>View Terms of Service</Text>
|
||||
</TouchableOpacity>
|
||||
<TouchableOpacity style={styles.agreeterms} onPress={() => actions.agree(!state.agree)}>
|
||||
{ state.agree && (
|
||||
<MatIcons name={'checkbox-outline'} size={20} color={Colors.primary} />
|
||||
)}
|
||||
{ !state.agree && (
|
||||
<MatIcons name={'checkbox-blank-outline'} size={20} color={Colors.primary} />
|
||||
)}
|
||||
<Text style={styles.agreetermstext}>I agree to Terms of Service</Text>
|
||||
</TouchableOpacity>
|
||||
</View>
|
||||
{ Platform.OS !== 'ios' && (
|
||||
<View style={styles.tos}>
|
||||
<TouchableOpacity style={styles.viewterms} onPress={actions.showTerms}>
|
||||
<Text style={styles.viewtermstext}>View Terms of Service</Text>
|
||||
</TouchableOpacity>
|
||||
<TouchableOpacity style={styles.agreeterms} onPress={() => actions.agree(!state.agree)}>
|
||||
{ state.agree && (
|
||||
<MatIcons name={'checkbox-outline'} size={20} color={Colors.primary} />
|
||||
)}
|
||||
{ !state.agree && (
|
||||
<MatIcons name={'checkbox-blank-outline'} size={20} color={Colors.primary} />
|
||||
)}
|
||||
<Text style={styles.agreetermstext}>I agree to Terms of Service</Text>
|
||||
</TouchableOpacity>
|
||||
</View>
|
||||
)}
|
||||
|
||||
<View style={styles.buttons}>
|
||||
{ state.enabled && state.agree && (
|
||||
{ state.enabled && (state.agree || Platform.OS === 'ios') && (
|
||||
<TouchableOpacity style={styles.create} onPress={create}>
|
||||
{ state.busy && (
|
||||
<ActivityIndicator size="small" color="#ffffff" />
|
||||
@ -164,7 +166,7 @@ export function Create() {
|
||||
)}
|
||||
</TouchableOpacity>
|
||||
)}
|
||||
{ (!state.enabled || !state.agree) && (
|
||||
{ (!state.enabled || (!state.agree && Platform.OS !== 'ios')) && (
|
||||
<View style={styles.nocreate}>
|
||||
<Text style={styles.nocreatetext}>Create Account</Text>
|
||||
</View>
|
||||
|
Loading…
Reference in New Issue
Block a user