Moves editing into forms. Every doc has a page now. BUG: state not refreshed after mutation
This commit is contained in:
@@ -1,15 +1,16 @@
|
||||
import { DocumentList } from "@/components/DocumentList";
|
||||
import { pb } from "@/lib/pocketbase";
|
||||
import type { Document, RelationshipType } from "@/lib/types";
|
||||
import { displayName } from "@/lib/relationships";
|
||||
import type { Document, DocumentId, RelationshipType } from "@/lib/types";
|
||||
import { useQueryClient, useSuspenseQuery } from "@tanstack/react-query";
|
||||
import { useState } from "react";
|
||||
import { Loader } from "./Loader";
|
||||
import { NewRelatedDocumentForm } from "./documents/NewRelatedDocumentForm";
|
||||
import { DocumentRow } from "./documents/DocumentRow";
|
||||
import { displayName } from "@/lib/relationships";
|
||||
import { NewRelatedDocumentForm } from "./documents/NewRelatedDocumentForm";
|
||||
|
||||
interface RelationshipListProps {
|
||||
root: Document;
|
||||
items: Document[];
|
||||
items: DocumentId[];
|
||||
relationshipType: RelationshipType;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user