From 9efc432e160b429a0643c38e28140bcf42af30a7 Mon Sep 17 00:00:00 2001 From: Noah Loomans Date: Thu, 28 Jun 2018 13:45:27 +0200 Subject: Add history to redux thunk --- src/client/react/App.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/client/react/App.js') diff --git a/src/client/react/App.js b/src/client/react/App.js index e9ff565..a5a5cbd 100644 --- a/src/client/react/App.js +++ b/src/client/react/App.js @@ -2,7 +2,7 @@ import React from 'react'; import PropTypes from 'prop-types'; import { - BrowserRouter, + Router, Route, Switch, Redirect, @@ -16,20 +16,21 @@ import User from './components/page/User'; export default class App extends React.Component { static propTypes = { store: PropTypes.object.isRequired, + history: PropTypes.object.isRequired, } render() { - const { store } = this.props; + const { store, history } = this.props; return ( - + - + ); } -- cgit v1.1