A fully open source & end-to-end encrypted note taking alternative to Evernote.
TypeScript asp-net-coredotnet-coreelectronfosshacktoberfestnote-managmentnote-takingnote-taking-appnotebooknotesnotes-appopen-sourceopensourceprivacyproductivityreactreact-nativereactjsself-hosted
fix ui of automatic backup option in settings
ammarahm-eda1a63bbad316
diff --git a/apps/mobile/src/views/Settings/backuprestore.js b/apps/mobile/src/views/Settings/backuprestore.jsindex ddcadddcb..81788a57e 100644--- a/apps/mobile/src/views/Settings/backuprestore.js+++ b/apps/mobile/src/views/Settings/backuprestore.js@@ -1,9 +1,9 @@-import React, { useEffect, useState } from 'react';-import { Platform, TouchableOpacity, View } from 'react-native';+import React, {useEffect, useState} from 'react';+import {Platform, TouchableOpacity, View} from 'react-native';import ToggleSwitch from 'toggle-switch-react-native';import Paragraph from '../../components/Typography/Paragraph';-import { useTracked } from '../../provider';-import { useSettingStore, useUserStore } from '../../provider/stores';+import {useTracked} from '../../provider';+import {useSettingStore, useUserStore} from '../../provider/stores';import Backup from '../../services/Backup';import {eSendEvent,@@ -17,12 +17,12 @@ import {eOpenLoginDialog,eOpenRestoreDialog} from '../../utils/Events';-import { openLinkInBrowser } from '../../utils/functions';-import { MMKV } from '../../utils/mmkv';-import { SIZE } from '../../utils/SizeUtils';-import { sleep } from '../../utils/TimeUtils';-import { CustomButton } from './button';-import { verifyUser } from './functions';+import {openLinkInBrowser} from '../../utils/functions';+import {MMKV} from '../../utils/mmkv';+import {SIZE} from '../../utils/SizeUtils';+import {sleep} from '../../utils/TimeUtils';+import {CustomButton} from './button';+import {verifyUser} from './functions';import SectionHeader from './section-header';const SettingsBackupAndRestore = ({isSheet}) => {@@ -127,7 +127,7 @@ const SettingsBackupAndRestore = ({isSheet}) => {}}},- desc: backupDir ? backupDir.path : 'No backup directory selected'+ desc: backupDir ? backupDir.name : 'No backup directory selected'});}@@ -199,36 +199,30 @@ const SettingsBackupAndRestore = ({isSheet}) => {style={{width: '100%',marginHorizontal: 0,- flexDirection: 'row',- alignItems: 'center',- justifyContent: 'space-between',- height: 50,- paddingHorizontal: 12+ paddingHorizontal: 12,+ flexShrink: 1,+ paddingVertical:10,}}>- <View+ <Paragraph+ size={SIZE.md}style={{- maxWidth: '60%'+ textAlignVertical: 'center',+ maxWidth: '100%'}}>- <Paragraph- size={SIZE.md}- style={{- textAlignVertical: 'center',- maxWidth: '100%'- }}>- Automatic backups- </Paragraph>- <Paragraph color={colors.icon} size={SIZE.sm}>- Backup your data automatically.- </Paragraph>- </View>+ Automatic backups+ </Paragraph>+ <Paragraph color={colors.icon} size={SIZE.sm}>+ Backup your data once every week or daily automatically.+ </Paragraph><Viewstyle={{flexDirection: 'row',- overflow: 'hidden',borderRadius: 5,- justifyContent: 'center',- alignItems: 'center'+ overflow: 'hidden',+ marginTop: 5,+ flexShrink: 1,+ width: 210}}>{[{@@ -243,7 +237,7 @@ const SettingsBackupAndRestore = ({isSheet}) => {title: 'Weekly',value: 'weekly'}- ].map(item => (+ ].map((item, index) => (<TouchableOpacityactiveOpacity={1}onPress={async () => {@@ -271,14 +265,16 @@ const SettingsBackupAndRestore = ({isSheet}) => {: colors.nav,justifyContent: 'center',alignItems: 'center',- width: 50,- height: 20+ width: 70,+ height: 25,+ borderRightWidth: index !== 2 ? 1 : 0,+ borderRightColor: colors.border}}><Paragraphcolor={settings.reminder === item.value ? 'white' : colors.icon}- size={SIZE.xs}>+ size={SIZE.xs + 1}>{item.title}</Paragraph></TouchableOpacity>diff --git a/apps/mobile/src/views/Settings/button.js b/apps/mobile/src/views/Settings/button.jsindex ca8a8ea81..6b5711883 100644--- a/apps/mobile/src/views/Settings/button.js+++ b/apps/mobile/src/views/Settings/button.js@@ -45,7 +45,8 @@ export const CustomButton = ({</Paragraph><Paragraphstyle={{- flexWrap: 'wrap'+ flexWrap: 'wrap',+ paddingRight:10}}size={SIZE.sm}color={colors.icon}>diff --git a/apps/mobile/src/views/Settings/privacy.js b/apps/mobile/src/views/Settings/privacy.jsindex c1154722c..fb0e90a39 100644--- a/apps/mobile/src/views/Settings/privacy.js+++ b/apps/mobile/src/views/Settings/privacy.js@@ -179,7 +179,7 @@ const SettingsPrivacyAndSecurity = () => {<CustomButtonkey="telemetry"title="Enable telemetry"- tagline="Usage data & crash reports will be sent to us (no 3rd party involved) for analytics. All data is anonymous as mentioned in our privacy policy."+ tagline="Usage data & crash reports will be sent to us for analytics (no 3rd party involved). All data is anonymous as mentioned in our privacy policy."onPress={() => {SettingsService.set('telemetry', !settings.telemetry);}}