Revert "Start supporting edit forms for any document type."

This reverts commit 6845bd06bf.
This commit is contained in:
2025-06-13 11:16:37 -07:00
parent 6845bd06bf
commit c28073d516
4 changed files with 26 additions and 63 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 { NewRelatedDocumentForm } from "./documents/NewRelatedDocumentForm";
import { DocumentForm } from "./documents/DocumentForm";
import { DocumentRow } from "./documents/DocumentRow";
interface RelationshipListProps {
@@ -68,7 +68,7 @@ export function RelationshipList({
error={error}
renderRow={(document) => <DocumentRow document={document} />}
newItemForm={(onSubmit) => (
<NewRelatedDocumentForm
<DocumentForm
campaignId={root.campaign}
relationshipType={relationshipType}
onCreate={async (doc: Document) => {