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
add a component to show user that data is encrypted
ammarahm-ed20281f4d6137
diff --git a/apps/mobile/src/components/ActionSheetComponent/index.js b/apps/mobile/src/components/ActionSheetComponent/index.jsindex 60ac35935..980295ad2 100644--- a/apps/mobile/src/components/ActionSheetComponent/index.js+++ b/apps/mobile/src/components/ActionSheetComponent/index.js@@ -41,6 +41,7 @@ import {deleteItems} from '../../utils/functions';import {MMKV} from '../../utils/mmkv';import {opacity, pv, SIZE} from '../../utils/SizeUtils';import {sleep, timeConverter} from '../../utils/TimeUtils';+import {ActionIcon} from '../ActionIcon';import {PremiumTag} from '../Premium/PremiumTag';import {PressableButton} from '../PressableButton';import {Toast} from '../Toast';@@ -568,27 +569,34 @@ export const ActionSheetComponent = ({style={{paddingHorizontal: 12,alignItems: 'center',- marginTop:5,- marginBottom:10+ marginTop: 5,}}>- <Heading size={SIZE.md}>{note?.title.replace('\n', '')}</Heading>-- <Paragraph- numberOfLines={2}+ <Headingstyle={{- width: '80%',- textAlign: 'center',- maxWidth: '80%',- }}>- {note.type === 'notebook' && note.description- ? note.description- : null}- {note.type === 'note' && item.headline- ? note.headline[item.headline.length - 1] === '\n'- ? note.headline.slice(0, note.headline.length - 1)- : note.headline- : null}- </Paragraph>+ maxWidth: '70%',+ }}+ size={SIZE.md}>+ {note?.title.replace('\n', '')}+ </Heading>++ {note.headline || note.description ? (+ <Paragraph+ numberOfLines={2}+ style={{+ width: '80%',+ textAlign: 'center',+ maxWidth: '80%',+ }}>+ {note.type === 'notebook' && note.description+ ? note.description+ : null}+ {note.type === 'note' && note.headline+ ? note.headline[item.headline.length - 1] === '\n'+ ? note.headline.slice(0, note.headline.length - 1)+ : note.headline+ : null}+ </Paragraph>+ ) : null}<Paragraphcolor={colors.icon}@@ -673,7 +681,7 @@ export const ActionSheetComponent = ({textAlignVertical: 'center',textAlign: 'center',}}>- {user && user.lastSynced > note.dateEdited+ {user && user.lastSynced && user.lastSynced > note.dateEdited? 'Synced': 'Sync Now'}</Paragraph>@@ -788,6 +796,49 @@ export const ActionSheetComponent = ({<View>{columnItemsData.map(_renderColumnItem)}</View>) : null}+ {note.type === 'note' &&+ user &&+ user.lastSynced &&+ user.lastSynced > note.dateEdited ? (+ <PressableButton+ type="shade"+ customStyle={{+ borderWidth: 1,+ borderRadius: 5,+ paddingVertical: 10,+ width: '95%',+ alignItems: 'flex-start',+ paddingHorizontal: 12,+ marginTop: 25,+ borderColor: colors.accent,+ flexDirection: 'row',+ justifyContent: 'flex-start',+ }}>+ <Icon name="shield-check" color={colors.accent} size={40} />++ <View+ style={{+ flex: 1,+ }}>+ <Heading+ color={colors.accent}+ style={{+ fontSize: SIZE.md,+ }}>+ This note is encrypted & synced+ </Heading>+ <Paragraph+ style={{+ flexWrap: 'wrap',+ flexBasis: 1,+ }}+ color={colors.accent}>+ No one can read it except you.+ </Paragraph>+ </View>+ </PressableButton>+ ) : null}+{DDS.isTab ? (<Viewstyle={{