Skip to content

Commit 3ebac95

Browse files
committed
[fixed] bug react-bootstrap#731. babel ES6 import + React quirk.
1 parent 4e3a15f commit 3ebac95

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/CollapsableNav.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import React from 'react';
22
import deprecationWarning from './utils/deprecationWarning';
33
import assign from './utils/Object.assign';
4-
import {specCollapsibleNav} from './CollapsibleNav';
4+
import CollapsibleNav from './CollapsibleNav';
55

6-
const specCollapsableNav = assign({}, specCollapsibleNav, {
6+
const specCollapsableNav = assign({}, CollapsibleNav._spec, {
77
componentDidMount() {
88
deprecationWarning(
99
'CollapsableNav',

src/CollapsibleNav.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,6 @@ const specCollapsibleNav = {
112112
};
113113

114114
const CollapsibleNav = React.createClass(specCollapsibleNav);
115+
CollapsibleNav._spec = specCollapsibleNav;
115116

116-
export {specCollapsibleNav};
117117
export default CollapsibleNav;

0 commit comments

Comments
 (0)