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 22
33import SpacedList from "@/common/ui/SpacedList"
44import DiffListItem from "./DiffListItem"
5-
6- interface Change {
7- path ?: string ;
8- text ?: string ;
9- }
5+ import { DiffChange } from "@/features/diff/domain/DiffChange"
106
117const PopulatedDiffList = ( {
128 changes,
139 selectedChange,
1410 onClick,
1511} : {
16- changes : Change [ ]
12+ changes : DiffChange [ ]
1713 selectedChange : number | null
1814 onClick : ( i : number ) => void
1915} ) => {
@@ -27,7 +23,7 @@ const PopulatedDiffList = ({
2723 >
2824 { changes . map ( ( change , i ) => (
2925 < DiffListItem
30- key = { i }
26+ key = { change . id }
3127 path = { change ?. path }
3228 text = { change ?. text }
3329 selected = { selectedChange === i }
You can’t perform that action at this time.
0 commit comments