From f8fddf01975eb06788b5449bb698210355190de2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tam=C3=A1s=20Szab=C3=B3?= <tamas@szaboo.com> Date: Mon, 5 Feb 2018 20:02:02 +0100 Subject: [PATCH] removed logout --- src/actions/auth.js | 9 --------- src/components/Header.js | 4 ++-- 2 files changed, 2 insertions(+), 11 deletions(-) diff --git a/src/actions/auth.js b/src/actions/auth.js index be78309..c831784 100644 --- a/src/actions/auth.js +++ b/src/actions/auth.js @@ -64,12 +64,3 @@ export const submitRegistration = ({ } } ); - -export const logout = () => ( - async (dispatch) => { - const response = await axios.get('/api/v1/logout/'); - if (response) { - dispatch({ type: LOGOUT }); - } - } -); diff --git a/src/components/Header.js b/src/components/Header.js index 41f5d23..930fafa 100644 --- a/src/components/Header.js +++ b/src/components/Header.js @@ -9,7 +9,7 @@ import { Image, } from 'semantic-ui-react'; import { connect } from 'react-redux'; -import { getUserData, logout } from '../actions'; +import { getUserData } from '../actions'; import KSZKlogo from './images/kszk_logo.svg'; const FixedMenu = ({ user }) => ( @@ -108,4 +108,4 @@ const mapStateToProps = ({ user }) => ({ user, }); -export default connect(mapStateToProps, { getUserData, logout })(Header); +export default connect(mapStateToProps, { getUserData })(Header); -- GitLab