MM-19759 - Added TOS and Privacy Policy default links in About… (#3491)

This commit is contained in:
Maria A Nunez
2019-10-30 14:11:14 -04:00
committed by GitHub
parent e4fdc5787d
commit 7c50b805fe
2 changed files with 10 additions and 2 deletions

View File

@@ -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/',
};

View File

@@ -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() {