Skip to content
Browse files

[removed] RouterModalTrigger removed upstream

Fixes #97
  • Loading branch information...
1 parent 91c29ab commit 5100b0bc87f1f7a61f20b9d0e58993558fb41bcc @taion taion committed
Showing with 6 additions and 39 deletions.
  1. +1 −3 .babelrc
  2. +0 −7 src/RouterModalTrigger.js
  3. +5 −15 src/index.js
  4. +0 −13 tests/RouterModalTrigger.spec.js
  5. +0 −1 tests/index.js
View
4 .babelrc
@@ -1,5 +1,3 @@
{
- "optional": [
- "es7.objectRestSpread"
- ]
+ "stage": 1
}
View
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
-});
View
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';
View
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
- });
- });
-});
View
1 tests/index.js
@@ -13,6 +13,5 @@ import './ButtonLink.spec.js';
import './ListGroupItemLink.spec.js';
import './MenuItemLink.spec.js';
import './NavItemLink.spec.js';
-import './RouterModalTrigger.spec.js';
import './RouterOverlayTrigger.spec.js';
import './bower-imports-module.spec.js';

0 comments on commit 5100b0b

Please sign in to comment.
Something went wrong with that request. Please try again.