Skip to content

Commit

Permalink
Merge branch '06-19-feat_seperate_user_config' of github.com:aamiraza…
Browse files Browse the repository at this point in the history
…d/homelab-connector into 06-19-feat_seperate_user_config
  • Loading branch information
aamirazad committed Jun 20, 2024
2 parents 8baa483 + a69f3f6 commit 373f08f
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions src/app/paperless/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

import { SignedIn, SignedOut } from "@clerk/nextjs";
import {
redirect,
usePathname,
useRouter,
useSearchParams,
Expand All @@ -21,7 +20,6 @@ import { Input } from "@/components/ui/input";
import { zodResolver } from "@hookform/resolvers/zod";
import { useCallback } from "react";
import { ExternalLink } from "lucide-react";
import { useEffect } from "react";
import {
useQuery,
QueryClientProvider,
Expand Down Expand Up @@ -128,7 +126,12 @@ function DocumentsPage() {
</h1>
);
} else if (!PaperlessDocuments.data || PaperlessDocuments.error) {
return <h1 className="text-2xl font-bold">Connection failed!</h1>;
return (
<h1 className="text-2xl font-bold">
Connection failed! Check that the paperless url is set correctly in{" "}
<Link href="/settings">settings</Link>
</h1>
);
}

const paperlessURL = userData.data?.paperlessURL;
Expand Down Expand Up @@ -161,10 +164,10 @@ function DocumentsPage() {
export default function PaperlessPage() {
return (
<main className="">
<div className="flex w-96 flex-col items-center justify-center">
<div className="flex flex-col items-center justify-center">
<SignedOut>
<div className="flex flex-col text-center text-2xl">
Please sign in above
Please <Link href="/sign-in">sign in</Link>
</div>
</SignedOut>
<SignedIn>
Expand Down

0 comments on commit 373f08f

Please sign in to comment.