diff --git a/src/app/@modal/(.)paperless/document/[id]/page.tsx b/src/app/@modal/(.)paperless/document/[id]/page.tsx index d4c683f..6d8d8af 100644 --- a/src/app/@modal/(.)paperless/document/[id]/page.tsx +++ b/src/app/@modal/(.)paperless/document/[id]/page.tsx @@ -1,5 +1,5 @@ import { Modal } from "./modal"; -import DocumentViewer from "@/components/DocumentViewer"; +import DocumentViewer from "@/components/document-viewer"; export default function DocumentModal(props: { id: number }) { return ( diff --git a/src/app/paperless/document/[id]/page.tsx b/src/app/paperless/document/[id]/page.tsx index 5c4995e..be788e3 100644 --- a/src/app/paperless/document/[id]/page.tsx +++ b/src/app/paperless/document/[id]/page.tsx @@ -1,4 +1,4 @@ -import DocumentViewer from "@/components/DocumentViewer"; +import DocumentViewer from "@/components/document-viewer"; export default function FullPageDocumentPage(props: { id: number }) { return ( diff --git a/src/app/settings/page.tsx b/src/app/settings/page.tsx index ace6ec4..c31b715 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 { getUserData, setUserProperty } from "../actions"; +import { getUserData, setUserProperty } from "@/app/actions"; import { Toaster } from "@/components/ui/sonner"; import { toast } from "sonner"; import { diff --git a/src/components/DocumentViewer.tsx b/src/components/DocumentViewer.tsx deleted file mode 100644 index e8a6def..0000000 --- a/src/components/DocumentViewer.tsx +++ /dev/null @@ -1,22 +0,0 @@ -import { getUserData } from "@/app/actions"; -import LoadingSpinner from "./loading-spinner"; - -export default async function DocumentViewer(props: { id: number }) { - const userData = await getUserData(); - - if (!userData) { - return