blob: 48cce019b5b207875ee582114853b5b4c1235770 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
import PropTypes from 'prop-types'
import React from 'react'
import Link from 'next/link'
const ProjectActionButtons = ({ projectId, onViewUsers, onDelete }) => (
<td className="text-right">
<Link href={`/projects/${projectId}`}>
<a className="btn btn-outline-primary btn-sm mr-2" title="Open this project">
<span className="fa fa-play" />
</a>
</Link>
<div
className="btn btn-outline-success btn-sm disabled mr-2"
title="View and edit collaborators (not supported currently)"
onClick={() => onViewUsers(projectId)}
>
<span className="fa fa-users" />
</div>
<div className="btn btn-outline-danger btn-sm" title="Delete this project" onClick={() => onDelete(projectId)}>
<span className="fa fa-trash" />
</div>
</td>
)
ProjectActionButtons.propTypes = {
projectId: PropTypes.string.isRequired,
onViewUsers: PropTypes.func,
onDelete: PropTypes.func,
}
export default ProjectActionButtons
|