hadron-react-components
Advanced tools
Comparing version 3.0.3 to 3.0.5
@@ -115,3 +115,10 @@ 'use strict'; | ||
value: function renderActiveView() { | ||
return this.props.views[this.state.activeTabIndex]; | ||
var idx = this.state.activeTabIndex; | ||
return React.createElement( | ||
'div', | ||
{ | ||
'data-test-id': this.props.tabs[idx].toLowerCase().replace(/ /g, '-') + '-content', | ||
className: 'tab' }, | ||
this.props.views[idx] | ||
); | ||
} | ||
@@ -118,0 +125,0 @@ |
@@ -7,3 +7,3 @@ { | ||
"homepage": "https://github.com/mongodb-js/hadron-react/packages/hadron-react-components", | ||
"version": "3.0.3", | ||
"version": "3.0.5", | ||
"repository": { | ||
@@ -50,3 +50,3 @@ "type": "git", | ||
}, | ||
"gitHead": "a0d4b80a1bac2baf42203a18d28d7e8913f8fcb3" | ||
"gitHead": "c79dc62c6061c0237a9a8b0c1e9905ec457bfaf2" | ||
} |
@@ -75,3 +75,10 @@ const React = require('react'); | ||
renderActiveView() { | ||
return this.props.views[this.state.activeTabIndex]; | ||
const idx = this.state.activeTabIndex; | ||
return ( | ||
<div | ||
data-test-id={`${this.props.tabs[idx].toLowerCase().replace(/ /g, '-')}-content`} | ||
className="tab"> | ||
{this.props.views[idx]} | ||
</div> | ||
); | ||
} | ||
@@ -78,0 +85,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
124443
3001