diff options
| author | Saatvik Arya <[email protected]> | 2024-07-23 15:21:43 -0700 |
|---|---|---|
| committer | Saatvik Arya <[email protected]> | 2024-07-23 15:21:43 -0700 |
| commit | 2569f6ce4e22ae9d3b7d494ca6a02729238ca63a (patch) | |
| tree | a06b3811721e6df5e940af1f7750761dcd0c9f37 /apps/web/app/(auth) | |
| parent | complete onboarding on skip (diff) | |
| download | supermemory-2569f6ce4e22ae9d3b7d494ca6a02729238ca63a.tar.xz supermemory-2569f6ce4e22ae9d3b7d494ca6a02729238ca63a.zip | |
tabs
Diffstat (limited to 'apps/web/app/(auth)')
| -rw-r--r-- | apps/web/app/(auth)/onboarding/page.tsx | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/apps/web/app/(auth)/onboarding/page.tsx b/apps/web/app/(auth)/onboarding/page.tsx index 6e7e85d7..9728d107 100644 --- a/apps/web/app/(auth)/onboarding/page.tsx +++ b/apps/web/app/(auth)/onboarding/page.tsx @@ -22,13 +22,13 @@ export default function Home() { const { push } = useRouter(); useEffect(() => { - const updateDb = async () => { - await completeOnboarding(); - } + const updateDb = async () => { + await completeOnboarding(); + } if (currStep > 3) { - updateDb().then(() => { - push("/home?q=what%20is%20supermemory"); - }); + updateDb().then(() => { + push("/home?q=what%20is%20supermemory"); + }); } }, [currStep]); @@ -385,11 +385,11 @@ function StepTwo({ currStep }: { currStep: number }) { } function Navbar() { - const router = useRouter(); - const handleSkip = async () => { - await completeOnboarding(); - router.push("/home?q=what%20is%20supermemory"); - } + const router = useRouter(); + const handleSkip = async () => { + await completeOnboarding(); + router.push("/home?q=what%20is%20supermemory"); + } return ( <div className="flex items-center justify-between p-4 fixed top-0 left-0 w-full"> @@ -399,7 +399,7 @@ function Navbar() { className="hover:brightness-125 duration-200 size-12" /> - <button className="text-sm" onClick={handleSkip}>Skip</button> + <button className="text-sm" onClick={handleSkip}>Skip</button> </div> ); } |