@@ -18,10 +18,7 @@ import AtomsRelationship from './AtomsRelationship.jsx';
18
18
import Example from './AtomsRelationship.jsx' ;
19
19
import { ParentSize } from '@visx/responsive' ;
20
20
import { Console } from 'console' ;
21
- < < << << < HEAD
22
21
import Legendary from './legend' ;
23
- = === ===
24
- >>> >>> > staging
25
22
26
23
const History = require ( './History' ) . default ;
27
24
@@ -50,10 +47,6 @@ const StateRoute = (props: StateRouteProps) => {
50
47
const { snapshot, hierarchy, snapshots, viewIndex } = props ;
51
48
52
49
const isRecoil = snapshot . atomsComponents ? true : false ;
53
- < < << << < HEAD
54
- = === ===
55
-
56
- >>> >>> > staging
57
50
const [ noRenderData , setNoRenderData ] = useState ( false ) ;
58
51
59
52
// component map zoom state
@@ -74,7 +67,7 @@ const StateRoute = (props: StateRouteProps) => {
74
67
</ ParentSize >
75
68
) ;
76
69
}
77
- return < div className = ' noState' > { NO_STATE_MSG } </ div > ;
70
+ return < div className = " noState" > { NO_STATE_MSG } </ div > ;
78
71
} ;
79
72
80
73
// the hierarchy gets set on the first click in the page
@@ -93,7 +86,7 @@ const StateRoute = (props: StateRouteProps) => {
93
86
</ div >
94
87
) ;
95
88
}
96
- return < div className = ' noState' > { NO_STATE_MSG } </ div > ;
89
+ return < div className = " noState" > { NO_STATE_MSG } </ div > ;
97
90
} ;
98
91
99
92
const renderAtomsRelationship = ( ) => (
@@ -102,13 +95,6 @@ const StateRoute = (props: StateRouteProps) => {
102
95
< Example width = { width } height = { height } snapshots = { snapshots } />
103
96
) }
104
97
</ ParentSize >
105
- < < << << < HEAD
106
-
107
- // atomsComponents={snapshot.atomsComponents}
108
- // atomSelectors={snapshot.atomSelectors}
109
- // />
110
- = === ===
111
- >>> >>> > staging
112
98
) ;
113
99
114
100
// the hierarchy gets set on the first click in the page
@@ -118,7 +104,7 @@ const StateRoute = (props: StateRouteProps) => {
118
104
if ( hierarchy ) {
119
105
return < Tree snapshot = { snapshot } /> ;
120
106
}
121
- return < div className = ' noState' > { NO_STATE_MSG } </ div > ;
107
+ return < div className = " noState" > { NO_STATE_MSG } </ div > ;
122
108
} ;
123
109
124
110
const renderPerfView = ( ) => {
@@ -133,55 +119,55 @@ const StateRoute = (props: StateRouteProps) => {
133
119
/>
134
120
) ;
135
121
}
136
- return < div className = ' noState' > { NO_STATE_MSG } </ div > ;
122
+ return < div className = " noState" > { NO_STATE_MSG } </ div > ;
137
123
} ;
138
124
139
125
return (
140
126
< Router >
141
- < div className = ' navbar' >
127
+ < div className = " navbar" >
142
128
< NavLink
143
- className = ' router-link'
144
- activeClassName = ' is-active'
129
+ className = " router-link"
130
+ activeClassName = " is-active"
145
131
exact
146
- to = '/'
132
+ to = "/"
147
133
>
148
134
Tree
149
135
</ NavLink >
150
136
< NavLink
151
- className = ' router-link'
152
- activeClassName = ' is-active'
153
- to = ' /history'
137
+ className = " router-link"
138
+ activeClassName = " is-active"
139
+ to = " /history"
154
140
>
155
141
History
156
142
</ NavLink >
157
- < NavLink className = ' router-link' activeClassName = ' is-active' to = ' /map' >
143
+ < NavLink className = " router-link" activeClassName = " is-active" to = " /map" >
158
144
Map
159
145
</ NavLink >
160
146
161
147
{ isRecoil && (
162
148
< NavLink
163
- className = ' router-link'
164
- activeClassName = ' is-active'
165
- to = ' /relationship'
149
+ className = " router-link"
150
+ activeClassName = " is-active"
151
+ to = " /relationship"
166
152
>
167
153
AtomsRecoil
168
154
</ NavLink >
169
155
) }
170
156
171
157
< NavLink
172
- className = ' router-link'
173
- activeClassName = ' is-active'
174
- to = ' /performance'
158
+ className = " router-link"
159
+ activeClassName = " is-active"
160
+ to = " /performance"
175
161
>
176
162
Performance
177
163
</ NavLink >
178
164
</ div >
179
165
< Switch >
180
- < Route path = ' /map' render = { renderComponentMap } />
181
- < Route path = ' /history' render = { renderHistory } />
182
- < Route path = ' /relationship' render = { renderAtomsRelationship } />
183
- < Route path = ' /performance' render = { renderPerfView } />
184
- < Route path = '/' render = { renderTree } />
166
+ < Route path = " /map" render = { renderComponentMap } />
167
+ < Route path = " /history" render = { renderHistory } />
168
+ < Route path = " /relationship" render = { renderAtomsRelationship } />
169
+ < Route path = " /performance" render = { renderPerfView } />
170
+ < Route path = "/" render = { renderTree } />
185
171
</ Switch >
186
172
</ Router >
187
173
) ;
0 commit comments