Skip to content

Commit

Permalink
Added privacy policy
Browse files Browse the repository at this point in the history
  • Loading branch information
JavidHaji-zada committed Oct 27, 2023
1 parent fde0405 commit 3637c3c
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 1 deletion.
23 changes: 23 additions & 0 deletions src/components/svg/icons/Lock.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
import React from 'react';
import { IconProps } from '@components/svg/icons/Icon.types';
import { Path, Svg } from 'react-native-svg';

export function LockIcon(props: IconProps) {
const { scale = 1 } = props;
const width = 20,
height = 21;
return (
<Svg
width={width}
height={height}
fill="none"
viewBox={`0 0 ${width} ${height}`}
style={{ transform: [{ scale }] }}
>
<Path
d="M8 0a4 4 0 014 4v2h1.75A2.25 2.25 0 0116 8.25v9.5A2.25 2.25 0 0113.75 20H2.25A2.25 2.25 0 010 17.75v-9.5A2.25 2.25 0 012.25 6H4V4a4 4 0 014-4zm5.75 7.5H2.25a.75.75 0 00-.75.75v9.5c0 .414.336.75.75.75h11.5a.75.75 0 00.75-.75v-9.5a.75.75 0 00-.75-.75zM8 11.5a1.5 1.5 0 110 3 1.5 1.5 0 010-3zm0-10A2.5 2.5 0 005.5 4v2h5V4A2.5 2.5 0 008 1.5z"
fill="black"
/>
</Svg>
);
}
1 change: 1 addition & 0 deletions src/components/svg/icons/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ export * from './AppStore';
export * from './Back';
export * from './BellIcon';
export * from './BellIconWelcome';
export * from './Lock';
export * from './BottomSheetSwiper';
export * from './Browser';
export * from './Check';
Expand Down
13 changes: 12 additions & 1 deletion src/screens/Settings/components/SettingsInfoBlock/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React from 'react';
import { Linking, Platform, View } from 'react-native';
import { Button, Row, Spacer, Text } from '@components/base';
import { HelpIcon } from '@components/svg/icons/Help';
import { AppStoreIcon, PlayStoreIcon } from '@components/svg/icons';
import { AppStoreIcon, LockIcon, PlayStoreIcon } from '@components/svg/icons';
import { PlatformSpecificUtils } from '@utils/platform';
import { styles } from './style';

Expand All @@ -11,8 +11,19 @@ export const SettingsInfoBlock = () => {
Linking.openURL('https://airdao.academy/faqs');
};

const openPrivacyPolicy = () => {
Linking.openURL('https://airdao.io/AirDAO_Mobile_App_Privacy_Policy.pdf');
};

return (
<View testID="Settings_Screen_Settings_Info_Block">
<Spacer value={42} />
<Button type="base" onPress={openPrivacyPolicy}>
<Row alignItems="center">
<LockIcon />
<Text style={styles.infoTextContainer}>Privacy Policy</Text>
</Row>
</Button>
<Spacer value={42} />
<Button type="base" onPress={openLink}>
<Row alignItems="center">
Expand Down

0 comments on commit 3637c3c

Please sign in to comment.