@@ -3,15 +3,20 @@ import { type OrchestrationV2CheckpointFileTotals, type RunId } from "@t3tools/c
33import { type MouseEvent , type ReactNode , memo , useLayoutEffect , useRef , useState } from "react" ;
44import { type TurnDiffFileChange } from "../../types" ;
55import { buildTurnDiffTree , type TurnDiffTreeNode } from "../../lib/turnDiffTree" ;
6- import { ChevronRightIcon , FileDiffIcon } from "lucide-react" ;
7- import { ChevronsDownUp , ChevronsUpDown , Folder , FolderClosed } from "lucide" ;
6+ import {
7+ ChevronRightIcon ,
8+ FileDiffIcon ,
9+ ChevronsDownUpIcon ,
10+ ChevronsUpDownIcon ,
11+ FolderClosedIcon ,
12+ FolderIcon ,
13+ } from "lucide-react" ;
814import { cn } from "~/lib/utils" ;
915import { DiffStatLabel , hasNonZeroStat } from "./DiffStatLabel" ;
1016import { PierreEntryIcon } from "./PierreEntryIcon" ;
1117import { Button } from "../ui/button" ;
1218import { Tooltip , TooltipPopup , TooltipTrigger } from "../ui/tooltip" ;
1319import { MiddleTruncate } from "../ui/middle-truncate" ;
14- import { MorphIcon } from "~/components/MorphIcon" ;
1520import { observeResize } from "~/lib/observeResize" ;
1621
1722const EMPTY_DIRECTORY_OVERRIDES : Record < string , boolean > = { } ;
@@ -92,10 +97,11 @@ export const ChangedFilesCard = memo(function ChangedFilesCard(props: {
9297 />
9398 }
9499 >
95- < MorphIcon
96- className = "size-3"
97- icon = { allDirectoriesExpanded ? ChevronsDownUp : ChevronsUpDown }
98- />
100+ { allDirectoriesExpanded ? (
101+ < ChevronsDownUpIcon className = "size-3" />
102+ ) : (
103+ < ChevronsUpDownIcon className = "size-3" />
104+ ) }
99105 </ TooltipTrigger >
100106 < TooltipPopup side = "top" >
101107 { allDirectoriesExpanded ? "Collapse all folders" : "Expand all folders" }
@@ -211,10 +217,11 @@ const ChangedFilesTree = memo(function ChangedFilesTree(props: {
211217 isExpanded && "rotate-90" ,
212218 ) }
213219 />
214- < MorphIcon
215- className = "size-3.5 shrink-0 text-muted-foreground/75"
216- icon = { isExpanded ? Folder : FolderClosed }
217- />
220+ { isExpanded ? (
221+ < FolderIcon className = "size-3.5 shrink-0 text-muted-foreground/75" />
222+ ) : (
223+ < FolderClosedIcon className = "size-3.5 shrink-0 text-muted-foreground/75" />
224+ ) }
218225 < span className = "truncate font-mono text-2xs text-muted-foreground/90 group-hover:text-foreground/90" >
219226 { node . name }
220227 </ span >
0 commit comments