Skip to content

Commit

Permalink
Finishing touches on basic functionality
Browse files Browse the repository at this point in the history
  • Loading branch information
aamirazad committed Aug 20, 2024
1 parent 4afee45 commit 93d3be6
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 134 deletions.
19 changes: 0 additions & 19 deletions src/app/paperless/document/[id]/page.tsx

This file was deleted.

17 changes: 9 additions & 8 deletions src/app/paperless/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import Link from "next/link";
import OpenInternalLink from "@/components/internal-link";
import type { PaperlessDocumentsType } from "@/types";
import type { UsersTableType } from "@/server/db/schema";
import { ReactQueryDevtools } from "@tanstack/react-query-devtools";
import Image from "next/image";

const queryClient = new QueryClient();

Expand Down Expand Up @@ -223,15 +223,17 @@ function DocumentsPage() {
key={index}
className="rounded-lg border p-4 shadow transition-shadow duration-300 hover:shadow-lg"
>
<img
src={imageUrls.get(document.id) || ""}
alt={document.title}
className="h-32 w-full rounded object-cover"
/>
<Link
className="mt-2 block text-lg font-semibold underline hover:text-slate-300"
href={`/paperless/document/${document.id}?query=${query}`}
href={`/paperless/details/${document.id}?query=${query}`}
>
<Image
src={imageUrls.get(document.id) ?? ""}
alt={document.title}
width={40}
height={128}
className="h-32 w-full rounded object-cover mb-2"
/>
{document.title}
</Link>
</div>
Expand Down Expand Up @@ -261,7 +263,6 @@ export default function PaperlessPage() {
<div className="w-full">
<QueryClientProvider client={queryClient}>
<DocumentsPage />
<ReactQueryDevtools initialIsOpen={false} />
</QueryClientProvider>
</div>
</div>
Expand Down
107 changes: 0 additions & 107 deletions src/components/document-preview.tsx

This file was deleted.

0 comments on commit 93d3be6

Please sign in to comment.