From 7c50b805fe587cd652378b998baf37feb9b799dd Mon Sep 17 00:00:00 2001 From: Maria A Nunez Date: Wed, 30 Oct 2019 14:11:14 -0400 Subject: [PATCH] =?UTF-8?q?MM-19759=20-=20Added=20TOS=20and=20Privacy=20Po?= =?UTF-8?q?licy=20default=20links=20in=20About=E2=80=A6=20(#3491)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/constants/about_links.js | 7 +++++++ app/screens/about/about.js | 5 +++-- 2 files changed, 10 insertions(+), 2 deletions(-) create mode 100644 app/constants/about_links.js diff --git a/app/constants/about_links.js b/app/constants/about_links.js new file mode 100644 index 000000000..0081ad848 --- /dev/null +++ b/app/constants/about_links.js @@ -0,0 +1,7 @@ +// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. +// See LICENSE.txt for license information. + +export default { + TERMS_OF_SERVICE: 'https://about.mattermost.com/default-terms/', + PRIVACY_POLICY: 'https://about.mattermost.com/default-privacy-policy/', +}; diff --git a/app/screens/about/about.js b/app/screens/about/about.js index 8243dd882..85152ea5c 100644 --- a/app/screens/about/about.js +++ b/app/screens/about/about.js @@ -18,6 +18,7 @@ import {changeOpacity, makeStyleSheetFromTheme, setNavigatorStyles} from 'app/ut import {paddingHorizontal as padding} from 'app/components/safe_area_view/iphone_x_spacing'; import AppIcon from 'app/components/app_icon'; import Config from 'assets/config'; +import AboutLinks from 'app/constants/about_links'; const MATTERMOST_BUNDLE_IDS = ['com.mattermost.rnbeta', 'com.mattermost.rn']; @@ -53,11 +54,11 @@ export default class About extends PureComponent { }; handleTermsOfService = () => { - Linking.openURL(this.props.config.TermsOfServiceLink); + Linking.openURL(AboutLinks.TERMS_OF_SERVICE); }; handlePrivacyPolicy = () => { - Linking.openURL(this.props.config.PrivacyPolicyLink); + Linking.openURL(AboutLinks.PRIVACY_POLICY); } render() {