Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: remove all done page in settings #32

Merged
merged 2 commits into from
Jun 25, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 3 additions & 11 deletions src/app/settings/page.tsx
Original file line number Diff line number Diff line change
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
Loading