-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(privacy-policy): Add privacy policy access from settings (#2607)
- Loading branch information
1 parent
31e7ad1
commit 6e2efe9
Showing
10 changed files
with
211 additions
and
123 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
apps/wallet-mobile/src/features/Settings/PrivacyPolicy/PrivacyPolicyScreen.stories.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import {storiesOf} from '@storybook/react-native' | ||
import React from 'react' | ||
import {StyleSheet, View} from 'react-native' | ||
|
||
import {PrivacyPolicyScreen} from './PrivacyPolicyScreen' | ||
|
||
const styles = StyleSheet.create({ | ||
decorator: { | ||
flex: 1, | ||
}, | ||
}) | ||
|
||
storiesOf('PrivacyPolicyScreen', module) | ||
.addDecorator((getStory) => <View style={styles.decorator}>{getStory()}</View>) | ||
.add('Default', () => <PrivacyPolicyScreen />) |
30 changes: 30 additions & 0 deletions
30
apps/wallet-mobile/src/features/Settings/PrivacyPolicy/PrivacyPolicyScreen.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import React from 'react' | ||
import {ScrollView, StyleSheet} from 'react-native' | ||
import {SafeAreaView} from 'react-native-safe-area-context' | ||
|
||
import {StatusBar} from '../../../components' | ||
import {useLanguage} from '../../../i18n' | ||
import {PrivacyPolicy} from '../../../Legal' | ||
|
||
export const PrivacyPolicyScreen = () => { | ||
const {languageCode} = useLanguage() | ||
|
||
return ( | ||
<SafeAreaView edges={['left', 'right', 'bottom']} style={styles.safeAreaView}> | ||
<StatusBar type="dark" /> | ||
|
||
<ScrollView contentContainerStyle={styles.contentContainer}> | ||
<PrivacyPolicy languageCode={languageCode} /> | ||
</ScrollView> | ||
</SafeAreaView> | ||
) | ||
} | ||
const styles = StyleSheet.create({ | ||
safeAreaView: { | ||
backgroundColor: '#fff', | ||
flex: 1, | ||
}, | ||
contentContainer: { | ||
padding: 16, | ||
}, | ||
}) |
1 change: 1 addition & 0 deletions
1
apps/wallet-mobile/src/features/Settings/PrivacyPolicy/index.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export {PrivacyPolicyScreen} from './PrivacyPolicyScreen' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.