1
- import "./ResolutionsPage.css" ;
2
1
import React , { useEffect , useState } from "react" ;
3
2
import {
4
3
Page ,
@@ -18,10 +17,10 @@ import {
18
17
import { vscode } from "../utils/vscode" ;
19
18
import { Change , ResolutionMessage } from "@shared/types" ;
20
19
import { CheckCircleIcon , WarningTriangleIcon } from "@patternfly/react-icons" ;
21
- import { IncidentList } from "./IncidentList" ;
22
- import { CodePreview } from "./CodePreview" ;
23
- import { FileChanges } from "./FileChanges" ;
24
20
import spacing from "@patternfly/react-styles/css/utilities/Spacing/spacing" ;
21
+ import IncidentList from "./IncidentList" ;
22
+ import { FileChanges } from "./FileChanges" ;
23
+ import { CodePreview } from "./CodePreview" ;
25
24
26
25
const ResolutionPage : React . FC = ( ) => {
27
26
const [ resolution , setResolution ] = useState < ResolutionMessage | null > ( null ) ;
@@ -141,15 +140,11 @@ const ResolutionPage: React.FC = () => {
141
140
< CardTitle >
142
141
{ resolution ?. violation . description || "No Violation Data" }
143
142
< Badge className = { spacing . mSm } >
144
- { /* {mockViolation.category} */ }
145
143
{ resolution ?. violation . category }
146
144
</ Badge >
147
145
</ CardTitle >
148
146
< CardBody >
149
147
< IncidentList
150
- // incidents={mockViolation.incidents}
151
- // selectedIncident={selectedIncident}
152
- // onSelectIncident={setSelectedIncident}
153
148
incidents = { resolution ?. violation . incidents }
154
149
selectedIncident = { resolution ?. incident }
155
150
onSelectIncident = { ( incident ) => { } }
0 commit comments