Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Settings: Privacy: add explainers for clipboard and lurker mode #1670

Merged
merged 1 commit into from
Sep 21, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -620,7 +620,10 @@
"views.Settings.Privacy.BlockExplorer.custom": "Custom",
"views.Settings.Privacy.customBlockExplorer": "Custom Block explorer",
"views.Settings.Privacy.lurkerMode": "Lurker mode",
"views.Settings.Privacy.lurkerMode.explainer1": "Lurker mode hides all sensitive values by changing them to ancient Greek characters.",
"views.Settings.Privacy.lurkerMode.explainer2": "This is a great way to demo the app to someone without revealing your sensitive information.",
"views.Settings.Privacy.clipboard": "Read clipboard",
"views.Settings.Privacy.clipboard.explainer": "If enabled, Zeus will read values copied to your clipboard and prompt you if they can be used in the app.",
"views.Settings.Privacy.enableMempoolRates": "Enable Mempool.space fee suggestions",
"views.Settings.SetPassword.title": "Set / Change Password",
"views.Settings.SetPassword.save": "Save",
Expand Down
24 changes: 19 additions & 5 deletions views/Settings/Privacy.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as React from 'react';
import { ScrollView, Text, View } from 'react-native';
import { ScrollView, View } from 'react-native';
import { ListItem } from 'react-native-elements';
import { inject, observer } from 'mobx-react';
import SettingsStore, { BLOCK_EXPLORER_KEYS } from '../../stores/SettingsStore';
Expand All @@ -10,6 +10,7 @@ import DropdownSetting from '../../components/DropdownSetting';
import Header from '../../components/Header';
import Screen from '../../components/Screen';
import Switch from '../../components/Switch';
import Text from '../../components/Text';
import TextInput from '../../components/TextInput';

interface PrivacyProps {
Expand Down Expand Up @@ -163,15 +164,19 @@ export default class Privacy extends React.Component<
backgroundColor: 'transparent'
}}
>
<ListItem.Title
<Text
style={{
color: themeColor('secondaryText'),
fontSize: 17,
fontFamily: 'Lato-Regular',
left: -10
}}
infoText={localeString(
'views.Settings.Privacy.clipboard.explainer'
)}
>
{localeString('views.Settings.Privacy.clipboard')}
</ListItem.Title>
</Text>
<View
style={{
flex: 1,
Expand Down Expand Up @@ -204,15 +209,24 @@ export default class Privacy extends React.Component<
backgroundColor: 'transparent'
}}
>
<ListItem.Title
<Text
style={{
color: themeColor('secondaryText'),
fontSize: 17,
fontFamily: 'Lato-Regular',
left: -10
}}
infoText={[
localeString(
'views.Settings.Privacy.lurkerMode.explainer1'
),
localeString(
'views.Settings.Privacy.lurkerMode.explainer2'
)
]}
>
{localeString('views.Settings.Privacy.lurkerMode')}
</ListItem.Title>
</Text>
<View
style={{
flex: 1,
Expand Down