diff --git a/src/CollapsableNav.js b/src/CollapsableNav.js index 3f3ee153c5..904cf77139 100644 --- a/src/CollapsableNav.js +++ b/src/CollapsableNav.js @@ -1,9 +1,9 @@ import React from 'react'; import deprecationWarning from './utils/deprecationWarning'; import assign from './utils/Object.assign'; -import {specCollapsibleNav} from './CollapsibleNav'; +import CollapsibleNav from './CollapsibleNav'; -const specCollapsableNav = assign({}, specCollapsibleNav, { +const specCollapsableNav = assign({}, CollapsibleNav._spec, { componentDidMount() { deprecationWarning( 'CollapsableNav', diff --git a/src/CollapsibleNav.js b/src/CollapsibleNav.js index 1f4927f558..dab17622e9 100644 --- a/src/CollapsibleNav.js +++ b/src/CollapsibleNav.js @@ -112,6 +112,6 @@ const specCollapsibleNav = { }; const CollapsibleNav = React.createClass(specCollapsibleNav); +CollapsibleNav._spec = specCollapsibleNav; -export {specCollapsibleNav}; export default CollapsibleNav;