From 3ebac953d651568f579ac378b5ab5126118fc812 Mon Sep 17 00:00:00 2001 From: AlexKVal Date: Tue, 26 May 2015 20:00:52 +0300 Subject: [PATCH] [fixed] bug #731. `babel ES6 import` + `React` quirk. --- src/CollapsableNav.js | 4 ++-- src/CollapsibleNav.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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;