File tree Expand file tree Collapse file tree 3 files changed +8
-8
lines changed
src/components/intercept/config Expand file tree Collapse file tree 3 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -101,7 +101,7 @@ class DockerAttachConfig extends React.Component<{
101
101
Pick a container to restart it with all traffic intercepted:
102
102
</ p >
103
103
104
- < InterceptionTargetList < string >
104
+ < InterceptionTargetList
105
105
spinnerText = 'Looking for Docker containers to intercept...'
106
106
interceptTarget = { this . interceptTarget }
107
107
ellipseDirection = 'right'
Original file line number Diff line number Diff line change @@ -88,19 +88,19 @@ const TargetText = styled.span<{ ellipseDirection: 'left' | 'right' }>`
88
88
: '' }
89
89
` ;
90
90
91
- type TargetItem < Id > = {
92
- id : Id ,
91
+ type TargetItem = {
92
+ id : string ,
93
93
title : string ,
94
94
content : React . ReactNode ,
95
95
icon ?: React . ReactNode ,
96
96
status : 'active' | 'available' | 'activating' | 'unavailable' ,
97
97
} ;
98
98
99
99
@observer
100
- export class InterceptionTargetList < Id extends string | number > extends React . Component < {
100
+ export class InterceptionTargetList extends React . Component < {
101
101
spinnerText : string ,
102
- targets : TargetItem < Id > [ ] ,
103
- interceptTarget : ( id : Id ) => void ,
102
+ targets : TargetItem [ ] ,
103
+ interceptTarget : ( id : string ) => void ,
104
104
ellipseDirection : 'left' | 'right'
105
105
} > {
106
106
@@ -116,7 +116,7 @@ export class InterceptionTargetList<Id extends string | number> extends React.Co
116
116
117
117
return < ListScrollContainer >
118
118
< TargetList >
119
- { _ . map ( targets , ( target : TargetItem < Id > ) => < Target key = { target . id } >
119
+ { _ . map ( targets , ( target : TargetItem ) => < Target key = { target . id } >
120
120
< TargetButton
121
121
title = { target . title }
122
122
state = { target . status }
Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ class JvmConfig extends React.Component<{
59
59
Pick which JVM process you'd like to intercept:
60
60
</ p >
61
61
62
- < InterceptionTargetList < string >
62
+ < InterceptionTargetList
63
63
spinnerText = 'Looking for JVM processes to intercept...'
64
64
interceptTarget = { this . interceptTarget }
65
65
ellipseDirection = 'left'
You can’t perform that action at this time.
0 commit comments