Skip to content
Source
Sign inSign up
pingdotgg/t3code

chore: remove `AnnotatableFileDiff` leftovers, rename file #3488

Mergedipanasenko(GitHub profile, opens in a new tab)merged 1 commit intomain fromrefs/pull/3488/headmerged by juliusmarminge View on GitHub

Showing 2 changed files with 2 additions and 180 deletions.

x
0 of 2 viewed, 2 left
1 addition and 179 deletionsapps/web/src/components/diffs/AnnotatableFileDiff.tsxrenamed toapps/web/src/components/diffs/AnnotatableCodeView.tsxRenamed
View file
@@ -6,13 +6,7 @@
FileDiffMetadata,
SelectedLineRange,
} from "@pierre/diffs";
-import {
- CodeView,
- type CodeViewHandle,
- type CodeViewProps,
- FileDiff,
- type FileDiffProps,
-} from "@pierre/diffs/react";
+import { CodeView, type CodeViewHandle, type CodeViewProps } from "@pierre/diffs/react";
import type { ScopedThreadRef } from "@t3tools/contracts";
import { useCallback, useMemo, useState, type ReactNode, type Ref } from "react";
​
@@ -76,178 +70,6 @@
);
​
-interface AnnotatableFileDiffProps {
- fileDiff: FileDiffMetadata;
- filePath: string;
- sectionId: string;
- sectionTitle: string;
- composerDraftTarget: ScopedThreadRef | DraftId;
- options: FileDiffProps<DiffCommentAnnotationGroup>["options"];
- renderHeaderPrefix: (fileDiff: FileDiffMetadata) => ReactNode;
-}
-​