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 = ({ ...@@ -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 { ...@@ -9,7 +9,7 @@ import {
Image, Image,
} from 'semantic-ui-react'; } from 'semantic-ui-react';
import { connect } from 'react-redux'; import { connect } from 'react-redux';
import { getUserData, logout } from '../actions'; import { getUserData } from '../actions';
import KSZKlogo from './images/kszk_logo.svg'; import KSZKlogo from './images/kszk_logo.svg';
const FixedMenu = ({ user }) => ( const FixedMenu = ({ user }) => (
...@@ -108,4 +108,4 @@ const mapStateToProps = ({ user }) => ({ ...@@ -108,4 +108,4 @@ const mapStateToProps = ({ user }) => ({
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.
Finish editing this message first!
Please register or to comment