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 login/signup flow
ammarahm-ed790ce505e23f
diff --git a/apps/mobile/src/components/LoginDialog/index.js b/apps/mobile/src/components/LoginDialog/index.jsindex c923cd314..3c2612bd2 100644--- a/apps/mobile/src/components/LoginDialog/index.js+++ b/apps/mobile/src/components/LoginDialog/index.js@@ -213,7 +213,6 @@ const LoginDialog = () => {oldPassword = null;email = null;password = null;- setUserConsent(false);setError(false);setLoading(false);setStatus(null);diff --git a/apps/mobile/src/components/ResultDialog/ProFeatures.js b/apps/mobile/src/components/ResultDialog/ProFeatures.jsindex ada37f877..0a443cd1a 100644--- a/apps/mobile/src/components/ResultDialog/ProFeatures.js+++ b/apps/mobile/src/components/ResultDialog/ProFeatures.js@@ -3,11 +3,11 @@ import {View} from 'react-native';import Icon from 'react-native-vector-icons/MaterialCommunityIcons';import {useTracked} from '../../provider';import {eSendEvent} from '../../services/EventManager';-import {eCloseResultDialog, eOpenPremiumDialog} from '../../utils/Events';+import {eCloseProgressDialog, eCloseResultDialog, eOpenPremiumDialog} from '../../utils/Events';import {SIZE} from '../../utils/SizeUtils';import {sleep} from '../../utils/TimeUtils';import Paragraph from '../Typography/Paragraph';-export const ProFeatures = () => {+export const ProFeatures = ({count = 6}) => {const [state, dispatch] = useTracked();const {colors} = state;@@ -15,39 +15,50 @@ export const ProFeatures = () => {<>{[{- title: 'Unlimited notes & notebooks',- icon: 'notebook'+ content:+ 'Unlock unlimited notebooks, tags, colors. Organize like a pro'},{- title: 'Unlimited file & image attachments',- icon: 'attachment'+ content:+ 'Attach files upto 500MB, upload 4K images with unlimited storage'},{- title: 'Lock any note with password',- icon: 'shield-outline'+ content: 'Instantly sync to unlimited devices'},{- title: 'Rich text editing with markdown',- icon: 'pencil'+ content: 'A private vault to keep everything imporant always locked'+ },+ {+ content:+ 'Rich note editing experience with markdown, tables, checklists and more'+ },+ {+ content: 'Export your notes in Pdf, markdown and html formats'}- ].map(item => (- <View- style={{- flexDirection: 'row',- width: '100%',- height: 40,- paddingHorizontal: 24,- marginBottom: 10,- alignItems: 'center',- borderRadius: 5- }}>- <Icon size={SIZE.md} color={colors.accent} name={item.icon} />- <Paragraph style={{marginLeft: 5}}>{item.title}</Paragraph>- </View>- ))}+ ]+ .slice(0, count)+ .map(item => (+ <View+ style={{+ flexDirection: 'row',+ width: '100%',+ height: 40,+ paddingHorizontal: 0,+ marginBottom: 10,+ alignItems: 'center',+ borderRadius: 5,+ justifyContent:'flex-start'+ }}>+ <Icon size={SIZE.lg} color={colors.accent} name="check" />+ <Paragraph style={{marginLeft: 5, flexShrink: 1}}>+ {item.content}+ </Paragraph>+ </View>+ ))}<ParagraphonPress={async () => {eSendEvent(eCloseResultDialog);+ eSendEvent(eCloseProgressDialog);await sleep(300);eSendEvent(eOpenPremiumDialog);}}diff --git a/apps/mobile/src/components/ResultDialog/index.js b/apps/mobile/src/components/ResultDialog/index.jsindex e74432d0d..11d6bf652 100644--- a/apps/mobile/src/components/ResultDialog/index.js+++ b/apps/mobile/src/components/ResultDialog/index.js@@ -1,22 +1,22 @@-import React, {useEffect, useState} from 'react';-import {View} from 'react-native';-import {useTracked} from '../../provider';-import {DDS} from '../../services/DeviceDetection';-import {eSubscribeEvent, eUnSubscribeEvent} from '../../services/EventManager';-import {getElevation} from '../../utils';-import {eCloseResultDialog, eOpenResultDialog} from '../../utils/Events';-import {ph, SIZE} from '../../utils/SizeUtils';-import {Button} from '../Button';+import React, { useEffect, useState } from 'react';+import { View } from 'react-native';+import { useTracked } from '../../provider';+import { DDS } from '../../services/DeviceDetection';+import { eSubscribeEvent, eUnSubscribeEvent } from '../../services/EventManager';+import { getElevation } from '../../utils';+import { eCloseResultDialog, eOpenResultDialog } from '../../utils/Events';+import { SIZE } from '../../utils/SizeUtils';+import { Button } from '../Button';import BaseDialog from '../Dialog/base-dialog';import Seperator from '../Seperator';import Heading from '../Typography/Heading';import Paragraph from '../Typography/Paragraph';-import {ProFeatures} from './pro-features';+import { ProFeatures } from './pro-features';const ResultDialog = () => {const [state, dispatch] = useTracked();const {colors} = state;- const [visible, setVisible] = useState(false);+ const [visible, setVisible] = useState(true);const [dialogData, setDialogData] = useState({title: 'Thank you for signing up!',paragraph:@@ -24,6 +24,7 @@ const ResultDialog = () => {button: 'Start taking notes'});useEffect(() => {+eSubscribeEvent(eOpenResultDialog, open);eSubscribeEvent(eCloseResultDialog, close);return () => {@@ -84,7 +85,14 @@ const ResultDialog = () => {<Seperator />- <ProFeatures />+ <View+ style={{+ paddingHorizontal: 12,+ alignItems: 'center',+ width: '100%'+ }}>+ <ProFeatures count={4} />+ </View><Seperator /><View