@@ -45,13 +45,8 @@ interface StateRouteProps {
45
45
46
46
const StateRoute = ( props : StateRouteProps ) => {
47
47
const { snapshot, hierarchy, snapshots, viewIndex } = props ;
48
- < < << << < HEAD
49
48
const [ { tabs, currentTab } , dispatch ] = useStoreContext ( ) ;
50
49
const { hierarchy, sliderIndex, viewIndex } = tabs [ currentTab ] ;
51
- = === ===
52
-
53
- console . log ( hierarchy ) ;
54
- > >>> >>> e938454e37a781e16248bb535d0850ea3a0020fd
55
50
56
51
const isRecoil = snapshot . atomsComponents ? true : false ;
57
52
const [ noRenderData , setNoRenderData ] = useState ( false ) ;
@@ -67,7 +62,7 @@ const StateRoute = (props: StateRouteProps) => {
67
62
</ ParentSize >
68
63
) ;
69
64
}
70
- return < div className = ' noState' > { NO_STATE_MSG } </ div > ;
65
+ return < div className = " noState" > { NO_STATE_MSG } </ div > ;
71
66
} ;
72
67
73
68
// the hierarchy gets set on the first click in the page
@@ -84,7 +79,7 @@ const StateRoute = (props: StateRouteProps) => {
84
79
/>
85
80
) ;
86
81
}
87
- return < div className = ' noState' > { NO_STATE_MSG } </ div > ;
82
+ return < div className = " noState" > { NO_STATE_MSG } </ div > ;
88
83
} ;
89
84
90
85
const renderAtomsRelationship = ( ) => (
@@ -102,7 +97,7 @@ const StateRoute = (props: StateRouteProps) => {
102
97
if ( hierarchy ) {
103
98
return < Tree snapshot = { snapshot } /> ;
104
99
}
105
- return < div className = ' noState' > { NO_STATE_MSG } </ div > ;
100
+ return < div className = " noState" > { NO_STATE_MSG } </ div > ;
106
101
} ;
107
102
108
103
const renderPerfView = ( ) => {
@@ -128,55 +123,55 @@ const StateRoute = (props: StateRouteProps) => {
128
123
// />
129
124
) ;
130
125
}
131
- return < div className = ' noState' > { NO_STATE_MSG } </ div > ;
126
+ return < div className = " noState" > { NO_STATE_MSG } </ div > ;
132
127
} ;
133
128
134
129
return (
135
130
< Router >
136
- < div className = ' navbar' >
131
+ < div className = " navbar" >
137
132
< NavLink
138
- className = ' router-link'
139
- activeClassName = ' is-active'
133
+ className = " router-link"
134
+ activeClassName = " is-active"
140
135
exact
141
- to = '/'
136
+ to = "/"
142
137
>
143
138
Tree
144
139
</ NavLink >
145
140
< NavLink
146
- className = ' router-link'
147
- activeClassName = ' is-active'
148
- to = ' /history'
141
+ className = " router-link"
142
+ activeClassName = " is-active"
143
+ to = " /history"
149
144
>
150
145
History
151
146
</ NavLink >
152
- < NavLink className = ' router-link' activeClassName = ' is-active' to = ' /map' >
147
+ < NavLink className = " router-link" activeClassName = " is-active" to = " /map" >
153
148
Map
154
149
</ NavLink >
155
150
156
151
{ isRecoil && (
157
152
< NavLink
158
- className = ' router-link'
159
- activeClassName = ' is-active'
160
- to = ' /relationship'
153
+ className = " router-link"
154
+ activeClassName = " is-active"
155
+ to = " /relationship"
161
156
>
162
157
AtomsRecoil
163
158
</ NavLink >
164
159
) }
165
160
166
161
< NavLink
167
- className = ' router-link'
168
- activeClassName = ' is-active'
169
- to = ' /performance'
162
+ className = " router-link"
163
+ activeClassName = " is-active"
164
+ to = " /performance"
170
165
>
171
166
Performance
172
167
</ NavLink >
173
168
</ div >
174
169
< Switch >
175
- < Route path = ' /map' render = { renderComponentMap } />
176
- < Route path = ' /history' render = { renderHistory } />
177
- < Route path = ' /relationship' render = { renderAtomsRelationship } />
178
- < Route path = ' /performance' render = { renderPerfView } />
179
- < Route path = '/' render = { renderTree } />
170
+ < Route path = " /map" render = { renderComponentMap } />
171
+ < Route path = " /history" render = { renderHistory } />
172
+ < Route path = " /relationship" render = { renderAtomsRelationship } />
173
+ < Route path = " /performance" render = { renderPerfView } />
174
+ < Route path = "/" render = { renderTree } />
180
175
</ Switch >
181
176
</ Router >
182
177
) ;
0 commit comments