From a53988c9bbc8f18cb8a2a1aed4b78a6ffb459091 Mon Sep 17 00:00:00 2001 From: Aamir Azad Date: Tue, 18 Jun 2024 10:46:30 +0530 Subject: [PATCH] finishing touches --- src/app/setup/forms.tsx | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/app/setup/forms.tsx b/src/app/setup/forms.tsx index 5e5d50b..a944f84 100644 --- a/src/app/setup/forms.tsx +++ b/src/app/setup/forms.tsx @@ -18,9 +18,14 @@ import { Dispatch, SetStateAction, useState } from "react"; import { useUser } from "@clerk/nextjs"; import { redirect, usePathname } from "next/navigation"; import LoadingSpinner from "@/components/loading-spinner"; -import { setFullUserName, setPaperlessToken, setPaperlessURL } from "../actions"; +import { + setFullUserName, + setPaperlessToken, + setPaperlessURL, +} from "../actions"; import { Toaster } from "@/components/ui/sonner"; import { toast } from "sonner"; +import { Check } from "lucide-react"; function FullName({ setActiveTab, @@ -231,7 +236,10 @@ function PaperlessToken({ } function Done() { - return <>All done!; + setTimeout(function () { + redirect("/"); + }, 3000); + return <>All done! Redirecting home..; } interface ProgressIndicatorProps {