Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add privacy policy link #629

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/constants/text.js
Original file line number Diff line number Diff line change
Expand Up @@ -210,5 +210,7 @@ export default {
message:
"We can't find a good connection - please try again when you connection is restored",
button: "Try again"
}
},
privacyPolicyText: "Privacy policy",
privacyPolicyUrl: "https://prideinlondon.org/privacy"
};
28 changes: 28 additions & 0 deletions src/screens/SupportUsScreen/__snapshots__/index.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,34 @@ exports[`renders correctly 1`] = `
url="SPONSOR"
/>
</ContentPadding>
<ContentPadding
padding={Object {}}
style={
Array [
Object {
"marginBottom": 16,
},
Object {
"alignItems": "center",
},
]
}
>
<Touchable
accessibilityComponentType="button"
accessibilityTraits={
Array [
"button",
]
}
delayPressIn={50}
onPress={[Function]}
>
<TextLink>
Privacy policy
</TextLink>
</Touchable>
</ContentPadding>
</Component>
</ScrollView>
</Component>
Expand Down
12 changes: 11 additions & 1 deletion src/screens/SupportUsScreen/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// @flow
import React from "react";
import { ScrollView, StyleSheet, View } from "react-native";
import { ScrollView, StyleSheet, View, Linking } from "react-native";
import type { NavigationScreenProp, NavigationState } from "react-navigation";
import supportUsAsIndividual from "../../../assets/images/supportUsAsIndividual.jpg";
import supportUsAsBusiness from "../../../assets/images/supportUsAsBusiness.jpg";
Expand All @@ -13,6 +13,8 @@ import ButtonWithShapes from "../../components/ButtonWithShapes";
import ContentPadding from "../../components/ContentPadding";
import Header from "../../components/Header";
import ImageHeader from "../../components/ImageHeader";
import TextLink from "../../components/TextLink";
import Touchable from "../../components/Touchable";
import {
lightNavyBlueColor,
warmPinkColor,
Expand Down Expand Up @@ -86,6 +88,11 @@ const SupportUsScreen = ({ navigation }: Props) => (
testID="support-us-sponsor-button"
/>
</ContentPadding>
<ContentPadding style={[styles.sectionSpacing, styles.privacy]}>
<Touchable onPress={() => Linking.openURL(text.privacyPolicyUrl)}>
<TextLink>{text.privacyPolicyText}</TextLink>
</Touchable>
</ContentPadding>
</View>
</ScrollView>
</View>
Expand All @@ -106,6 +113,9 @@ const styles = StyleSheet.create({
},
buttonSpacing: {
marginTop: 12
},
privacy: {
alignItems: "center"
}
});

Expand Down