forked from Ivasoft/mattermost-mobile
MM-19759 - Added TOS and Privacy Policy default links in About… (#3491)
This commit is contained in:
7
app/constants/about_links.js
Normal file
7
app/constants/about_links.js
Normal 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/',
|
||||
};
|
||||
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user