From 30ac9259c7b9dc367fca15cb6e7895feb0955bd4 Mon Sep 17 00:00:00 2001 From: Ansh Date: Wed, 19 Jul 2023 23:50:42 -0700 Subject: [APP-775] Add Welcome screen after account creation (#1038) * add comments to step 1-3 * add onboarding screen * add analytics for onboarding tracking * fix useEffect * change text * change icon size * put onboarding into bottom sheet modal instead of react navigation * wip * Simplify the type validation * Fix: only trigger onboarding modal when account creation succeeds * Add the 'session-ready' event which fires when the new session is stable * Use the 'session-ready' event to trigger the onboarding modal * update copy * update copy --------- Co-authored-by: Paul Frazee --- src/lib/async/timeout.ts | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 src/lib/async/timeout.ts (limited to 'src/lib/async') diff --git a/src/lib/async/timeout.ts b/src/lib/async/timeout.ts new file mode 100644 index 000000000..8be008d87 --- /dev/null +++ b/src/lib/async/timeout.ts @@ -0,0 +1,3 @@ +export function timeout(ms: number): Promise { + return new Promise(r => setTimeout(r, ms)) +} -- cgit 1.4.1