refactor intro and auth flow

This commit is contained in:
Ammar Ahmed
2022-07-05 14:33:48 +05:00
parent 07628f070d
commit add9473157
27 changed files with 935 additions and 630 deletions

View File

@@ -4,6 +4,7 @@ import { Platform } from 'react-native';
import Share from 'react-native-share';
import { editing, toTXT } from '..';
import { notesnook } from '../../../e2e/test.ids';
import { AuthMode } from '../../components/auth';
import { presentDialog } from '../../components/dialog/functions';
import NoteHistory from '../../components/note-history';
import { MoveNotes } from '../../components/sheets/move-notes/movenote';
@@ -232,7 +233,15 @@ export const useActions = ({ close = () => {}, item }) => {
message: 'Login to publish note',
context: 'local',
func: () => {
eSendEvent(eOpenLoginDialog);
Navigation.navigate(
{
name: 'Login'
},
{
mode: AuthMode.login,
canGoBack: true
}
);
},
actionText: 'Login'
});