Renames DocumentForm to NewRelatedDocumentForm

This commit is contained in:
2025-06-13 11:23:28 -07:00
parent 9f1e38ce47
commit ebe2e28cdb
2 changed files with 3 additions and 3 deletions

View File

@@ -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) => <DocumentRow document={document} />}
newItemForm={(onSubmit) => (
<DocumentForm
<NewRelatedDocumentForm
campaignId={root.campaign}
relationshipType={relationshipType}
onCreate={async (doc: Document) => {

View File

@@ -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,