diff --git a/src/components/RelationshipList.tsx b/src/components/RelationshipList.tsx index e86c3e2..d168953 100644 --- a/src/components/RelationshipList.tsx +++ b/src/components/RelationshipList.tsx @@ -3,7 +3,7 @@ import { pb } from "@/lib/pocketbase"; import type { Document, RelationshipType } from "@/lib/types"; import { useState } from "react"; import { Loader } from "./Loader"; -import { DocumentForm } from "./documents/DocumentForm"; +import { NewRelatedDocumentForm } from "./documents/NewRelatedDocumentForm"; import { DocumentRow } from "./documents/DocumentRow"; interface RelationshipListProps { @@ -68,7 +68,7 @@ export function RelationshipList({ error={error} renderRow={(document) => } newItemForm={(onSubmit) => ( - { diff --git a/src/components/documents/DocumentForm.tsx b/src/components/documents/NewRelatedDocumentForm.tsx similarity index 97% rename from src/components/documents/DocumentForm.tsx rename to src/components/documents/NewRelatedDocumentForm.tsx index d700acb..86e952d 100644 --- a/src/components/documents/DocumentForm.tsx +++ b/src/components/documents/NewRelatedDocumentForm.tsx @@ -13,7 +13,7 @@ function assertUnreachable(_x: never): never { /** * Renders a form for any document type depending on the relationship. */ -export const DocumentForm = ({ +export const NewRelatedDocumentForm = ({ campaignId, relationshipType, onCreate,