From dcc31f836940e02e425428837aa76fa9fa1f4ad0 Mon Sep 17 00:00:00 2001 From: Aamir Azad Date: Mon, 24 Jun 2024 16:58:50 +0530 Subject: [PATCH] feat: remove all done page in settings --- src/app/settings/page.tsx | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/src/app/settings/page.tsx b/src/app/settings/page.tsx index ef9feff..bdd3446 100644 --- a/src/app/settings/page.tsx +++ b/src/app/settings/page.tsx @@ -19,7 +19,7 @@ import { useState } from "react"; import { useUser } from "@clerk/nextjs"; import { redirect, usePathname } from "next/navigation"; import LoadingSpinner from "@/components/loading-spinner"; -import { setUserProperty } from "../actions"; +import { getUserData, setUserProperty } from "../actions"; import { Toaster } from "@/components/ui/sonner"; import { toast } from "sonner"; @@ -151,9 +151,9 @@ function PaperlessToken({ - You can create (or re-create) an API token by opening the "My - Profile" link in the user dropdown found in the web UI and - clicking the circular arrow button. + You can create (or re-create) an API token by opening the + "My Profile" link in the user dropdown found in the + web UI and clicking the circular arrow button. )} @@ -164,13 +164,6 @@ function PaperlessToken({ ); } -function Done() { - setTimeout(function () { - redirect("/"); - }, 3000); - return <>All done! Redirecting home..; -} - interface ProgressIndicatorProps { activeTab: number; totalTabs: number; @@ -203,7 +196,6 @@ export default function SettingsPage() { const formElements = [ , , - , ]; return ( <>