File tree Expand file tree Collapse file tree 2 files changed +5
-13
lines changed
Expand file tree Collapse file tree 2 files changed +5
-13
lines changed Original file line number Diff line number Diff line change 22
33import { Box , Typography } from "@mui/material" ;
44import PopulatedDiffList from "./PopulatedDiffList" ;
5-
6- interface Change {
7- path ?: string ;
8- text ?: string ;
9- }
5+ import { DiffChange } from "@/features/diff/domain/DiffChange" ;
106
117export type DiffListStatus = "idle" | "loading" | "empty" | "ready" | "error"
128
@@ -16,7 +12,7 @@ const DiffList = ({
1612 selectedChange,
1713 onClick,
1814} : {
19- changes : Change [ ]
15+ changes : DiffChange [ ]
2016 status : DiffListStatus
2117 selectedChange : number | null
2218 onClick : ( i : number ) => void
Original file line number Diff line number Diff line change 33import React from "react" ;
44import SpacedList from "@/common/ui/SpacedList" ;
55import DiffListItem from "./DiffListItem" ;
6-
7- interface Change {
8- path ?: string ;
9- text ?: string ;
10- }
6+ import { DiffChange } from "@/features/diff/domain/DiffChange" ;
117
128const PopulatedDiffList = ( {
139 changes,
1410 selectedChange,
1511 onClick,
1612} : {
17- changes : Change [ ] ;
13+ changes : DiffChange [ ] ;
1814 selectedChange : number | null ;
1915 onClick : ( i : number ) => void ;
2016} ) => {
@@ -28,7 +24,7 @@ const PopulatedDiffList = ({
2824 >
2925 { changes . map ( ( change , i ) => (
3026 < DiffListItem
31- key = { i }
27+ key = { change . id }
3228 path = { change ?. path }
3329 text = { change ?. text }
3430 selected = { selectedChange === i }
You can’t perform that action at this time.
0 commit comments