Skip to content

Commit

Permalink
add terms/privacy to settings page
Browse files Browse the repository at this point in the history
  • Loading branch information
puneetlath committed Mar 22, 2021
1 parent cd27190 commit 24bb443
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 5 deletions.
32 changes: 28 additions & 4 deletions src/pages/settings/InitialPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ import {
import ScreenWrapper from '../../components/ScreenWrapper';
import MenuItem from '../../components/MenuItem';
import ROUTES from '../../ROUTES';
import openURLInNewTab from '../../libs/openURLInNewTab';
import CONST from '../../CONST';

const propTypes = {
/* Onyx Props */
Expand Down Expand Up @@ -139,10 +141,32 @@ const InitialSettingsPage = ({
</TouchableOpacity>
</View>
</View>
<Text style={[styles.chatItemMessageHeaderTimestamp]} numberOfLines={1}>
v
{version}
</Text>
<View style={[styles.sidebarFooter]}>
<Text style={[styles.chatItemMessageHeaderTimestamp]} numberOfLines={1}>
v
{version}
</Text>
<Text style={[styles.chatItemMessageHeaderTimestamp]} numberOfLines={1}>
Read the
{' '}
<Text
style={[styles.chatItemMessageHeaderTimestamp, styles.link]}
onPress={() => openURLInNewTab(CONST.TERMS_URL)}
>
terms of service
</Text>
{' '}
and
{' '}
<Text
style={[styles.chatItemMessageHeaderTimestamp, styles.link]}
onPress={() => openURLInNewTab(CONST.PRIVACY_URL)}
>
privacy policy
</Text>
.
</Text>
</View>
</View>
</ScreenWrapper>
);
Expand Down
2 changes: 1 addition & 1 deletion src/styles/styles.js
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,7 @@ const styles = {
sidebarFooter: {
alignItems: 'center',
display: 'flex',
flexDirection: 'row',
flexDirection: 'column',
height: 84,
justifyContent: 'flex-start',
paddingHorizontal: 20,
Expand Down

0 comments on commit 24bb443

Please sign in to comment.