Skip to content

Commit

Permalink
feat: remove all done page in settings
Browse files Browse the repository at this point in the history
  • Loading branch information
aamirazad committed Jun 25, 2024
1 parent 49f0b1b commit dcc31f8
Showing 1 changed file with 4 additions and 12 deletions.
16 changes: 4 additions & 12 deletions src/app/settings/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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";

Expand Down Expand Up @@ -151,9 +151,9 @@ function PaperlessToken({
<Input {...field} />
</FormControl>
<FormDescription>
You can create (or re-create) an API token by opening the &quot;My
Profile&quot; 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
&quot;My Profile&quot; link in the user dropdown found in the
web UI and clicking the circular arrow button.
</FormDescription>
</FormItem>
)}
Expand All @@ -164,13 +164,6 @@ function PaperlessToken({
);
}

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

interface ProgressIndicatorProps {
activeTab: number;
totalTabs: number;
Expand Down Expand Up @@ -203,7 +196,6 @@ export default function SettingsPage() {
const formElements = [
<PaperlessURL key="paperlessURL" setActiveTab={setActiveTab} />,
<PaperlessToken key="paperlessToken" setActiveTab={setActiveTab} />,
<Done key="done" />,
];
return (
<>
Expand Down

0 comments on commit dcc31f8

Please sign in to comment.