Skip to content
Snippets Groups Projects
Commit f8fddf01 authored by Tamás Szabó's avatar Tamás Szabó
Browse files

removed logout

parent 1bc4fe54
No related branches found
No related tags found
No related merge requests found
......@@ -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 });
}
}
);
......@@ -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);
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment