mirror of
https://github.com/streetwriters/notesnook.git
synced 2026-09-01 19:49:54 +02:00
mobile: show setup account screen after signup
This commit is contained in:
@@ -49,6 +49,7 @@ import AppIcon from "../ui/AppIcon";
|
||||
import { Spacing } from "../../common/design/spacing";
|
||||
import { SETTING_ACCOUNT_SVG } from "../../assets/images/assets";
|
||||
import { ProgressPills } from "../intro/progress-pills";
|
||||
import { sleep } from "../../utils/time";
|
||||
|
||||
const SignupSteps = {
|
||||
signup: 0,
|
||||
@@ -92,8 +93,9 @@ export const Signup = ({
|
||||
|
||||
setLoading(true);
|
||||
try {
|
||||
setCurrentStep(SignupSteps.createAccount);
|
||||
await db.user.signup(values.email.toLowerCase(), values.password);
|
||||
await sleep(1000);
|
||||
setCurrentStep(SignupSteps.createAccount);
|
||||
const user = await db.user.getUser();
|
||||
setUser(user);
|
||||
setLastSynced(await db.lastSynced());
|
||||
|
||||
Reference in New Issue
Block a user