react-apiembed
Advanced tools
Comparing version 0.1.2 to 0.1.3
@@ -1063,3 +1063,3 @@ (function (global, factory) { | ||
{ | ||
"aria-controls": "#" + key, | ||
"aria-controls": "" + key, | ||
"aria-selected": "true", | ||
@@ -1080,9 +1080,9 @@ role: "tab", | ||
{ className: "tabs-component-panels" }, | ||
this.props.snippets.filter(function (snippet, index) { | ||
return index == _this2.state.active; | ||
}).map(function (snippet) { | ||
this.props.snippets.map(function (snippet, index) { | ||
var activeTab = index == _this2.state.active; | ||
var key = _this2.getSnippetKey(snippet); | ||
return React.createElement( | ||
"section", | ||
{ role: "tabpanel", id: "#" + key, key: "#" + key }, | ||
{ hidden: !activeTab, role: "tabpanel", id: "" + key, key: "#" + key }, | ||
React.createElement(CodeSnippet, _extends({ har: _this2.props.har }, snippet)) | ||
@@ -1089,0 +1089,0 @@ ); |
{ | ||
"name": "react-apiembed", | ||
"version": "0.1.2", | ||
"version": "0.1.3", | ||
"description": "React api embed component.", | ||
@@ -5,0 +5,0 @@ "files": [ |
51714
953