diff --git a/zettelkasten-front/src/pages/cards/ViewPage.tsx b/zettelkasten-front/src/pages/cards/ViewPage.tsx
index b70aee1..09cafee 100644
--- a/zettelkasten-front/src/pages/cards/ViewPage.tsx
+++ b/zettelkasten-front/src/pages/cards/ViewPage.tsx
@@ -57,6 +57,7 @@ export function ViewPage({}: ViewPageProps) {
{ label: "Children" },
{ label: "References" },
{ label: "Related" },
+ { label: "Files" },
];
function onFileDelete(file_id: number) {}
@@ -243,22 +244,6 @@ export function ViewPage({}: ViewPageProps) {
setMessage={setError}
card={viewingCard}
/>
- {viewingCard.files.length > 0 && (
-
-
- {viewingCard.files.map((file, index) => (
- {}}
- displayFileOnCard={(file: File) => {
- handleDisplayFileOnCardClick(file);
- }}
- />
- ))}
-
-
- )}
{showCreateTaskWindow && (
@@ -293,9 +278,11 @@ export function ViewPage({}: ViewPageProps) {
>
{tab.label}
- {tab.label === "Children" && viewingCard.children.length}
- {tab.label === "References" && viewingCard.references.length}
- {tab.label === "Related" && relatedCards.length}
+ {tab.label === "Children" && viewingCard.children.length}
+ {tab.label === "References" &&
+ viewingCard.references.length}
+ {tab.label === "Related" && relatedCards.length}
+ {tab.label === "Files" && viewingCard.files.length}
))}
@@ -331,6 +318,26 @@ export function ViewPage({}: ViewPageProps) {
)}
+ {activeTab === "Files" && (
+
+ {viewingCard.files.length > 0 && (
+
+
+ {viewingCard.files.map((file, index) => (
+ {}}
+ displayFileOnCard={(file: File) => {
+ handleDisplayFileOnCardClick(file);
+ }}
+ />
+ ))}
+
+
+ )}
+
+ )}
)}