summaryrefslogtreecommitdiff
path: root/opendc-web/opendc-web-ui/src/containers/projects/ProjectActions.js
blob: bdb422dc2fd9f84fc279e7df8e8a989c795d1004 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import React from 'react'
import { useDispatch } from 'react-redux'
import { deleteProject } from '../../redux/actions/projects'
import ProjectActionButtons from '../../components/projects/ProjectActionButtons'

const ProjectActions = (props) => {
    const dispatch = useDispatch()
    const actions = {
        onViewUsers: (id) => {}, // TODO implement user viewing
        onDelete: (id) => dispatch(deleteProject(id)),
    }
    return <ProjectActionButtons {...props} {...actions} />
}

export default ProjectActions