File tree Expand file tree Collapse file tree 1 file changed +10
-6
lines changed Expand file tree Collapse file tree 1 file changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -167,8 +167,7 @@ class RightTabs extends Component<Props> {
167
167
label="Component State"
168
168
/> */ }
169
169
</ Tabs >
170
- { ! isEmpty ( focusComponent ) && (
171
- { value = = = 0 && (
170
+ { ! isEmpty ( focusComponent ) && value === 0 && (
172
171
< div
173
172
id = "treeWrapper"
174
173
style = { {
@@ -203,10 +202,15 @@ class RightTabs extends Component<Props> {
203
202
/>
204
203
</ div >
205
204
) }
206
- { value === 1 && < CodePreview focusComponent = { focusComponent} components = { components} / > }
207
- { value = = = 2 && < Props /> }
208
- { value === 3 && focusChild . childType === 'HTML' && < HtmlAttr /> }
209
- { value === 3 && focusChild . childType !== 'HTML' && (
205
+ { ! isEmpty ( focusComponent ) && value === 1 && (
206
+ < CodePreview
207
+ focusComponent = { focusComponent }
208
+ components = { components }
209
+ />
210
+ ) }
211
+ { ! isEmpty ( focusComponent ) && value === 2 && < Props /> }
212
+ { ! isEmpty ( focusComponent ) && value === 3 && focusChild . childType === 'HTML' && < HtmlAttr /> }
213
+ { ! isEmpty ( focusComponent ) && value === 3 && focusChild . childType !== 'HTML' && (
210
214
< p > Please select an HTML element to view attributes</ p >
211
215
) }
212
216
)}
You can’t perform that action at this time.
0 commit comments