From ebe2e28cdb034113d532a4173b51a8b612b0172e Mon Sep 17 00:00:00 2001 From: Drew Haven Date: Fri, 13 Jun 2025 11:23:28 -0700 Subject: [PATCH] Renames DocumentForm to NewRelatedDocumentForm --- src/components/RelationshipList.tsx | 4 ++-- .../{DocumentForm.tsx => NewRelatedDocumentForm.tsx} | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) rename src/components/documents/{DocumentForm.tsx => NewRelatedDocumentForm.tsx} (97%) 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,