From 4bbd31bcd316f050e00e711736e60f79f7d2dc89 Mon Sep 17 00:00:00 2001
From: Team 1280 Programming Laptop
<59985235+Team1280Programming@users.noreply.github.com>
Date: Wed, 14 Feb 2024 16:43:47 -0800
Subject: [PATCH] Clean up document page additions
---
src/app/document/page.tsx | 8 --------
src/app/document/view/[slug]/DocumentViewer.tsx | 3 +--
src/app/document/view/[slug]/VersionChooser.tsx | 9 ---------
3 files changed, 1 insertion(+), 19 deletions(-)
delete mode 100644 src/app/document/page.tsx
diff --git a/src/app/document/page.tsx b/src/app/document/page.tsx
deleted file mode 100644
index 0b7b6ad..0000000
--- a/src/app/document/page.tsx
+++ /dev/null
@@ -1,8 +0,0 @@
-export default function Page() {
- return (
-
- This is a placeholder for a document browser that will be implemented in
- the future. In the meantime, you can view specific documents by searching.
-
- )
-}
diff --git a/src/app/document/view/[slug]/DocumentViewer.tsx b/src/app/document/view/[slug]/DocumentViewer.tsx
index e79fea9..0532e37 100644
--- a/src/app/document/view/[slug]/DocumentViewer.tsx
+++ b/src/app/document/view/[slug]/DocumentViewer.tsx
@@ -9,7 +9,6 @@ import {
Reviewers,
} from '@/app/components/DataDisplay'
import { ItemBadge, Status } from '@/app/components/Badges'
-import Link from 'next/link'
import { notFound } from 'next/navigation'
import VersionChooser from './VersionChooser'
@@ -17,7 +16,7 @@ const zillaSlab = Zilla_Slab({ subsets: ['latin'], weight: ['500'] })
const DocumentViewer = ({ slug }: Readonly<{ slug: string }>) => {
const doc = documents[slug]
- const { manifest, abstract, file, citation } = doc
+ const { manifest, abstract, citation } = doc
if (!manifest) return notFound()
const {
diff --git a/src/app/document/view/[slug]/VersionChooser.tsx b/src/app/document/view/[slug]/VersionChooser.tsx
index 918e1ee..55f3027 100644
--- a/src/app/document/view/[slug]/VersionChooser.tsx
+++ b/src/app/document/view/[slug]/VersionChooser.tsx
@@ -9,16 +9,7 @@ const VersionChooser = ({
}: Readonly<{ doc: Document; slug: string }>) => {
const { file } = doc
const {
- title,
- authors,
- topics,
- dates,
- references,
- code,
- type,
latest,
- reviewers,
- status,
} = doc.manifest
const fileEnding = file === 'other' ? '' : `.${file}`