import React, { Component } from 'react';
import * as types from '../../../constants/ActionTypes'
import { logout } from '../../../actions/login';
import { connect } from 'react-redux';

class Logout extends Component {

    render() {
        return (
            <li id="logoutButton" onClick={this.props.logout}>
                <a> 
                    Logout
                </a>
            </li>
        );
    }
}

export default connect(null, { logout })(Logout)
@@ -178,16 +178,57 @@
 -redux';
+%0Aimport %7B Link %7D from 'react-router-dom';
 %0A%0Aclass 
@@ -371,58 +371,32 @@
    %3C
-a%3E %0A                    Logout%0A                %3C/a
+Link to=%22/%22%3ELogout%3C/Link
 %3E%0A  

Send user to home when he logs out