Skip to content

Commit

Permalink
Remove router dependency from FormioLogout that was crashing with lat…
Browse files Browse the repository at this point in the history
…est react-router build (4.0.0-beta.2).
  • Loading branch information
randallknutson committed Jan 31, 2017
1 parent d4b1937 commit e5aafc1
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10 deletions.
5 changes: 0 additions & 5 deletions lib/providers/FormioAuth/components/FormioLogout.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ var _react = require('react');

var _react2 = _interopRequireDefault(_react);

var _reactRouter = require('react-router');

var _reactRedux = require('react-redux');

var _actions = require('../actions');
Expand Down Expand Up @@ -87,7 +85,4 @@ var FormioLogout = exports.FormioLogout = function (_React$Component) {

FormioLogout.propTypes = {
onLogout: _react2.default.PropTypes.func
};
FormioLogout.contextTypes = {
router: _reactRouter.propTypes.routerContext
};
5 changes: 0 additions & 5 deletions src/providers/FormioAuth/components/FormioLogout.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import React from 'react';
import { propTypes } from 'react-router';
import { connect } from 'react-redux';
import { UserActions } from '../actions';

Expand All @@ -8,10 +7,6 @@ export class FormioLogout extends React.Component {
onLogout: React.PropTypes.func
};

static contextTypes = {
router: propTypes.routerContext
};

render() {
const Logout = connect(
(state) => {
Expand Down

0 comments on commit e5aafc1

Please sign in to comment.