Skip to content

Commit

Permalink
Merge pull request #393 from itbel/ib-privacy-policy
Browse files Browse the repository at this point in the history
Added link to privacy policy
  • Loading branch information
itbel committed Sep 10, 2023
2 parents e3bdbd2 + 50a3556 commit 49c587c
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions src/screens/profile/ProfileScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import {
TouchableOpacity,
View,
Text,
Linking,
} from 'react-native';
import { Auth } from '@aws-amplify/auth';
import { StackNavigationProp } from '@react-navigation/stack';
Expand Down Expand Up @@ -158,6 +159,14 @@ export default function Profile({ navigation }: Params): JSX.Element {
icon: Theme.icons.white.account,
action: () => navigation.navigate('AccountScreen'),
},
{
id: 'privacypolicy',
text: 'Privacy Policy',
subtext: 'Find out more about our privacy policy',
icon: Theme.icons.white.account,
action: () =>
Linking.openURL('https://themeetinghouse.com/privacy-policy'),
},
];
const signedOutItems = [
{
Expand All @@ -174,6 +183,14 @@ export default function Profile({ navigation }: Params): JSX.Element {
icon: Theme.icons.white.account,
action: () => navigation.navigate('Auth', { screen: 'LoginScreen' }),
},
{
id: 'privacypolicy',
text: 'Privacy Policy',
subtext: 'Find out more about our privacy policy',
icon: Theme.icons.white.account,
action: () =>
Linking.openURL('https://themeetinghouse.com/privacy-policy'),
},
];
const items = isLoggedIn ? signedInItems : signedOutItems;
return (
Expand Down

0 comments on commit 49c587c

Please sign in to comment.