diff options
| author | Georgios Andreadis <g.andreadis@student.tudelft.nl> | 2017-08-11 14:48:42 +0300 |
|---|---|---|
| committer | Georgios Andreadis <g.andreadis@student.tudelft.nl> | 2017-09-23 10:05:37 +0200 |
| commit | d7512ace72448242b392299cf459c9c72c8dbee5 (patch) | |
| tree | 37ce113d5d47440139bfe357e9ad547063cd44f7 /src/containers/auth/Logout.js | |
| parent | 737ce62470a13ae153788207719396e107252955 (diff) | |
Get Google authentication flow working
Diffstat (limited to 'src/containers/auth/Logout.js')
| -rw-r--r-- | src/containers/auth/Logout.js | 20 |
1 files changed, 20 insertions, 0 deletions
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; |
