Permalink
Please sign in to comment.
Showing
with
6 additions
and 39 deletions.
- +1 −3 .babelrc
- +0 −7 src/RouterModalTrigger.js
- +5 −15 src/index.js
- +0 −13 tests/RouterModalTrigger.spec.js
- +0 −1 tests/index.js
4
.babelrc
@@ -1,5 +1,3 @@ | ||
{ | ||
- "optional": [ | ||
- "es7.objectRestSpread" | ||
- ] | ||
+ "stage": 1 | ||
} |
7
src/RouterModalTrigger.js
@@ -1,7 +0,0 @@ | ||
-import React from 'react'; | ||
- | ||
-import ModalTrigger from 'react-bootstrap/lib/ModalTrigger'; | ||
- | ||
-export default ModalTrigger.withContext({ | ||
- router: React.PropTypes.func | ||
-}); |
20
src/index.js
@@ -1,15 +1,5 @@ | ||
-import ButtonLink from './ButtonLink'; | ||
-import ListGroupItemLink from './ListGroupItemLink'; | ||
-import MenuItemLink from './MenuItemLink'; | ||
-import NavItemLink from './NavItemLink'; | ||
-import RouterModalTrigger from './RouterModalTrigger'; | ||
-import RouterOverlayTrigger from './RouterOverlayTrigger'; | ||
- | ||
-export default { | ||
- ButtonLink, | ||
- ListGroupItemLink, | ||
- MenuItemLink, | ||
- NavItemLink, | ||
- RouterModalTrigger, | ||
- RouterOverlayTrigger | ||
-}; | ||
+export ButtonLink from './ButtonLink'; | ||
+export ListGroupItemLink from './ListGroupItemLink'; | ||
+export MenuItemLink from './MenuItemLink'; | ||
+export NavItemLink from './NavItemLink'; | ||
+export RouterOverlayTrigger from './RouterOverlayTrigger'; |
13
tests/RouterModalTrigger.spec.js
@@ -1,13 +0,0 @@ | ||
-/* globals describe, it, expect */ | ||
- | ||
-import React from 'react'; | ||
- | ||
-import RouterModalTrigger from '../src/RouterModalTrigger'; | ||
- | ||
-describe('A RouterModalTrigger', function() { | ||
- it('has the right contextTypes', function() { | ||
- expect(RouterModalTrigger.contextTypes).to.eql({ | ||
- router: React.PropTypes.func | ||
- }); | ||
- }); | ||
-}); |
1
tests/index.js
0 comments on commit
5100b0b