File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -133,6 +133,11 @@ class RightTabs extends Component {
133
133
} = this . props ;
134
134
const { value } = this . state ;
135
135
136
+ // display count on the tab. user can see without clicking into tab
137
+ const propCount = focusComponent . props . length
138
+ const htmlAttribCount = focusComponent . childrenArray . filter ( child => child . childType === 'HTML' ) . length
139
+
140
+ // const counters = focusComponent.ch
136
141
const tree = {
137
142
name : focusComponent . title ,
138
143
attributes : { } ,
@@ -154,7 +159,7 @@ class RightTabs extends Component {
154
159
< Tab
155
160
disableRipple
156
161
classes = { { root : classes . tabRoot , selected : classes . tabSelected } }
157
- label = " Component Props"
162
+ label = { ` Component Props ${ propCount ? '(' + propCount + ')' : '' } ` }
158
163
/>
159
164
< Tab
160
165
disableRipple
@@ -164,7 +169,7 @@ class RightTabs extends Component {
164
169
< Tab
165
170
disableRipple
166
171
classes = { { root : classes . tabRoot , selected : classes . tabSelected } }
167
- label = " HTML Element Attributes"
172
+ label = { ` HTML Element Attributes ${ htmlAttribCount ? '(' + htmlAttribCount + ')' : '' } ` }
168
173
/>
169
174
</ Tabs >
170
175
You can’t perform that action at this time.
0 commit comments