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 dc5f96efa..65a481beb 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() {