Linting
This commit is contained in:
@@ -6,7 +6,6 @@ import { FormattedDate } from "../FormattedDate";
|
||||
*/
|
||||
export const DocumentTitle = ({
|
||||
document,
|
||||
session,
|
||||
}: {
|
||||
document: AnyDocument;
|
||||
session?: Session;
|
||||
|
||||
@@ -4,7 +4,7 @@ import { displayName, relationshipsForDocument } from "@/lib/relationships";
|
||||
import type { DocumentId } from "@/lib/types";
|
||||
import { Route as CampaignRoute } from "@/routes/_app/_authenticated/campaigns.$campaignId";
|
||||
import { Link } from "@tanstack/react-router";
|
||||
import * as _ from "lodash";
|
||||
import _ from "lodash";
|
||||
import { Loader } from "../Loader";
|
||||
import { Route as RelationshipRoute } from "@/routes/_app/_authenticated/document.$documentId/$relationshipType";
|
||||
import { DocumentTitle } from "./DocumentTitle";
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { useDocument, useDocumentCache } from "@/context/document/hooks";
|
||||
import { useDocument } from "@/context/document/hooks";
|
||||
import type { DocumentId, RelationshipType } from "@/lib/types";
|
||||
import { RelationshipList } from "../RelationshipList";
|
||||
import { Loader } from "../Loader";
|
||||
import { RelationshipList } from "../RelationshipList";
|
||||
|
||||
export type Props = {
|
||||
documentId: DocumentId;
|
||||
@@ -11,8 +11,6 @@ export type Props = {
|
||||
export function RelatedDocumentList({ documentId, relationshipType }: Props) {
|
||||
const { docResult } = useDocument(documentId);
|
||||
|
||||
const { cache } = useDocumentCache();
|
||||
|
||||
if (docResult?.type !== "ready") {
|
||||
return <Loader />;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user