Skip to content

Commit

Permalink
finishing touches
Browse files Browse the repository at this point in the history
  • Loading branch information
aamirazad committed Jun 18, 2024
1 parent c8113ac commit a53988c
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions src/app/setup/forms.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -231,7 +236,10 @@ function PaperlessToken({
}

function Done() {
return <>All done!</>;
setTimeout(function () {
redirect("/");
}, 3000);
return <>All done! Redirecting home..</>;
}

interface ProgressIndicatorProps {
Expand Down

0 comments on commit a53988c

Please sign in to comment.