blob: 22400381bef3fa6227256c82bc2d846199d47f9a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
import { connect } from 'react-redux'
import { logOut } from '../../actions/auth'
import LogoutButton from '../../components/navigation/LogoutButton'
const mapDispatchToProps = (dispatch) => {
return {
onLogout: () => dispatch(logOut()),
}
}
const Logout = connect(undefined, mapDispatchToProps)(LogoutButton)
export default Logout
|