Renames DocumentForm to NewRelatedDocumentForm
This commit is contained in:
@@ -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) => {
|
||||
|
||||
@@ -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,
|
||||
Reference in New Issue
Block a user