This repository was archived by the owner on Jun 26, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 7 files changed +4
-12
lines changed Expand file tree Collapse file tree 7 files changed +4
-12
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ var Simple = require('./Simple');
16
16
var consts = require ( '../../agent/consts' ) ;
17
17
var previewComplex = require ( './previewComplex' ) ;
18
18
19
- class DataView {
19
+ class DataView extends React . Component {
20
20
props : {
21
21
data : Object ,
22
22
path : Array < string > ,
@@ -136,7 +136,6 @@ class DataItem extends React.Component {
136
136
// TODO path
137
137
children = (
138
138
< div style = { styles . children } >
139
- { /* $FlowFixMe flow thinks DataView must subclass React.Component */ }
140
139
< DataView
141
140
data = { this . props . value }
142
141
path = { this . props . path }
Original file line number Diff line number Diff line change 13
13
var React = require ( 'react' ) ;
14
14
import type { DOMEvent } from './types' ;
15
15
16
- class Draggable {
16
+ class Draggable extends React . Component {
17
17
_onMove : ( evt : DOMEvent ) => void ;
18
18
_onUp : ( evt : DOMEvent ) => void ;
19
19
props : {
Original file line number Diff line number Diff line change @@ -134,7 +134,6 @@ class Node {
134
134
< span style = { styles . tagText } >
135
135
< span style = { styles . openTag } >
136
136
< span style = { tagStyle } > <{ name } </ span >
137
- { /* $FlowFixMe doesn't need to inherit from React.Component */ }
138
137
{ node . get ( 'props' ) && < Props props = { node . get ( 'props' ) } /> }
139
138
{ ! content && '/' }
140
139
< span style = { tagStyle } > ></ span >
@@ -187,7 +186,6 @@ class Node {
187
186
< span style = { styles . tagText } >
188
187
< span style = { styles . openTag } >
189
188
< span style = { tagStyle } > <{ '' + node . get ( 'name' ) } </ span >
190
- { /* $FlowFixMe doesn't need to inherit from React.Component */ }
191
189
{ node . get ( 'props' ) && < Props props = { node . get ( 'props' ) } /> }
192
190
< span style = { tagStyle } > ></ span >
193
191
</ span >
Original file line number Diff line number Diff line change @@ -81,7 +81,6 @@ class PropState extends React.Component {
81
81
< div style = { styles . section } >
82
82
< strong > Props</ strong >
83
83
{ propsReadOnly && < em > read-only</ em > }
84
- { /* $FlowFixMe flow thinks DataView must subclass React.Component */ }
85
84
< DataView
86
85
path = { [ 'props' ] }
87
86
readOnly = { propsReadOnly }
@@ -94,7 +93,6 @@ class PropState extends React.Component {
94
93
{ state &&
95
94
< div style = { styles . section } >
96
95
< strong > State</ strong >
97
- { /* $FlowFixMe flow thinks DataView must subclass React.Component */ }
98
96
< DataView
99
97
data = { state }
100
98
path = { [ 'state' ] }
@@ -106,7 +104,6 @@ class PropState extends React.Component {
106
104
{ context &&
107
105
< div style = { styles . section } >
108
106
< strong > Context</ strong >
109
- { /* $FlowFixMe flow thinks DataView must subclass React.Component */ }
110
107
< DataView
111
108
data = { context }
112
109
path = { [ 'context' ] }
Original file line number Diff line number Diff line change 13
13
var React = require ( 'react' ) ;
14
14
var PropVal = require ( './PropVal' ) ;
15
15
16
- class Props {
16
+ class Props extends React . Component {
17
17
props : Object ;
18
18
shouldComponentUpdate ( nextProps : Object ) : boolean {
19
19
if ( nextProps === this . props ) {
Original file line number Diff line number Diff line change @@ -41,7 +41,6 @@ class SplitPane extends React.Component {
41
41
< div style = { styles . leftPane } >
42
42
{ this . props . left ( ) }
43
43
</ div >
44
- { /* $FlowFixMe the "extends React.Component" is just to help flow */ }
45
44
< Draggable
46
45
style = { dragStyle }
47
46
onStart = { ( ) => this . setState ( { moving : true } ) }
Original file line number Diff line number Diff line change @@ -45,7 +45,6 @@ class DisplayDeps {
45
45
return (
46
46
< div style = { styles . container } >
47
47
< div style = { styles . scrollParent } >
48
- { /* $FlowFixMe doesn't need to inherit from React.Component */ }
49
48
< SvgGraph
50
49
onHover = { this . props . onHover }
51
50
onClick = { this . props . onClick }
@@ -61,7 +60,7 @@ class DisplayDeps {
61
60
}
62
61
}
63
62
64
- class SvgGraph {
63
+ class SvgGraph extends React . Component {
65
64
props : Object ;
66
65
render ( ) {
67
66
var graph = this . props . graph ;
You can’t perform that action at this time.
0 commit comments