From d7512ace72448242b392299cf459c9c72c8dbee5 Mon Sep 17 00:00:00 2001 From: Georgios Andreadis Date: Fri, 11 Aug 2017 14:48:42 +0300 Subject: Get Google authentication flow working --- src/containers/auth/Logout.js | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 src/containers/auth/Logout.js (limited to 'src/containers/auth/Logout.js') diff --git a/src/containers/auth/Logout.js b/src/containers/auth/Logout.js new file mode 100644 index 00000000..8d329c1f --- /dev/null +++ b/src/containers/auth/Logout.js @@ -0,0 +1,20 @@ +import {connect} from "react-redux"; +import {logOut} from "../../actions/auth"; +import LogoutButton from "../../components/navigation/LogoutButton"; + +const mapStateToProps = state => { + return {}; +}; + +const mapDispatchToProps = dispatch => { + return { + onLogout: () => dispatch(logOut()), + }; +}; + +const Logout = connect( + mapStateToProps, + mapDispatchToProps +)(LogoutButton); + +export default Logout; -- cgit v1.2.3