summaryrefslogtreecommitdiff
path: root/opendc-web/opendc-web-ui/src/containers/auth/Logout.js
blob: 66f0f6db9b8c6ae62b54b7db51799ec1f06a8249 (plain)
1
2
3
4
5
6
7
8
9
10
11
import React from 'react'
import { useDispatch } from 'react-redux'
import { logOut } from '../../actions/auth'
import LogoutButton from '../../components/navigation/LogoutButton'

const Logout = (props) => {
    const dispatch = useDispatch()
    return <LogoutButton {...props} onLogout={() => dispatch(logOut())} />
}

export default Logout