Added user add functionality

This commit is contained in:
Philipp Czora
2018-07-11 17:02:38 +02:00
parent d35a56e07e
commit 1b6df5ee08
9 changed files with 317 additions and 38 deletions

View File

@@ -4,6 +4,7 @@ import Login from "./Login";
import { getIsAuthenticated } from "../modules/login";
import { connect } from "react-redux";
import { withRouter } from "react-router-dom";
import { ThunkDispatch } from "redux-thunk";
import "./App.css";
import Header from "../components/Header";
@@ -44,7 +45,7 @@ class App extends Component<Props> {
}
}
const mapDispatchToProps = dispatch => {
const mapDispatchToProps = (dispatch: ThunkDispatch) => {
return {
getAuthState: () => dispatch(getIsAuthenticated())
};