diff --git a/src/actions/auth.js b/src/actions/auth.js index be78309dff0b3021079228824f4767178ece3e1a..c831784601ee443516825cedc9eb14db12de2e35 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 41f5d231758ca2c62aba95063ebd6bced05d09d2..930fafa526545eedd9e42f0e9ba3b3efa309076a 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);