diff options
Diffstat (limited to 'src/view/com/auth/create/Policies.tsx')
-rw-r--r-- | src/view/com/auth/create/Policies.tsx | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/src/view/com/auth/create/Policies.tsx b/src/view/com/auth/create/Policies.tsx index 803e2ad32..f69b4bdbd 100644 --- a/src/view/com/auth/create/Policies.tsx +++ b/src/view/com/auth/create/Policies.tsx @@ -1,5 +1,5 @@ import React from 'react' -import {StyleSheet, View} from 'react-native' +import {Linking, StyleSheet, View} from 'react-native' import { FontAwesomeIcon, FontAwesomeIconStyle, @@ -17,9 +17,11 @@ type ServiceDescription = ComAtprotoServerDescribeServer.OutputSchema export const Policies = ({ serviceDescription, needsGuardian, + under13, }: { serviceDescription: ServiceDescription needsGuardian: boolean + under13: boolean }) => { const pal = usePalette('default') const {_} = useLingui() @@ -58,6 +60,7 @@ export const Policies = ({ href={tos} text={_(msg`Terms of Service`)} style={[pal.link, s.underline]} + onPress={() => Linking.openURL(tos)} />, ) } @@ -68,6 +71,7 @@ export const Policies = ({ href={pp} text={_(msg`Privacy Policy`)} style={[pal.link, s.underline]} + onPress={() => Linking.openURL(pp)} />, ) } @@ -86,14 +90,18 @@ export const Policies = ({ <Text style={pal.textLight}> <Trans>By creating an account you agree to the {els}.</Trans> </Text> - {needsGuardian && ( + {under13 ? ( + <Text style={[pal.textLight, s.bold]}> + You must be 13 years of age or older to sign up. + </Text> + ) : needsGuardian ? ( <Text style={[pal.textLight, s.bold]}> <Trans> If you are not yet an adult according to the laws of your country, your parent or legal guardian must read these Terms on your behalf. </Trans> </Text> - )} + ) : undefined} </View> ) } |