@@ -4,7 +4,7 @@ import { useCallback, useEffect, useMemo, useRef, useState } from "react";
44import useSWR from "swr" ;
55
66import AddToLabelingQueuePopover from "@/components/traces/add-to-labeling-queue-popover" ;
7- import CodeHighlighter from "@/components/ui/code-highlighter /index" ;
7+ import ContentRenderer from "@/components/ui/content-renderer /index" ;
88import { Datapoint } from "@/lib/dataset/types" ;
99import { useToast } from "@/lib/hooks/use-toast" ;
1010import { isValidJsonObject , swrFetcher } from "@/lib/utils" ;
@@ -335,7 +335,7 @@ export default function DatasetPanel({ datasetId, datapointId, onClose, onEditin
335335 < div className = "grow flex flex-col space-y-4 p-4 h-full w-full" >
336336 < div className = "flex flex-col space-y-2" >
337337 < Label className = "font-medium" > Data</ Label >
338- < CodeHighlighter
338+ < ContentRenderer
339339 presetKey = { `dataset-data-${ datasetId } ` }
340340 className = "max-h-[400px] rounded"
341341 value = { JSON . stringify ( newData , null , 2 ) }
@@ -366,7 +366,7 @@ export default function DatasetPanel({ datasetId, datapointId, onClose, onEditin
366366 </ div >
367367 < div className = "flex flex-col space-y-2" >
368368 < Label className = "font-medium" > Target</ Label >
369- < CodeHighlighter
369+ < ContentRenderer
370370 presetKey = { `dataset-target-${ datasetId } ` }
371371 className = "max-h-[400px] rounded w-full"
372372 value = { JSON . stringify ( newTarget , null , 2 ) }
@@ -384,7 +384,7 @@ export default function DatasetPanel({ datasetId, datapointId, onClose, onEditin
384384 </ div >
385385 < div className = "flex flex-col space-y-2 pb-4" >
386386 < Label className = "font-medium" > Metadata</ Label >
387- < CodeHighlighter
387+ < ContentRenderer
388388 presetKey = { `dataset-metadata-${ datasetId } ` }
389389 className = "rounded max-h-[400px]"
390390 value = { JSON . stringify ( newMetadata , null , 2 ) }
0 commit comments