diff options
| author | Georgios Andreadis <g.andreadis@student.tudelft.nl> | 2017-08-09 17:04:15 +0300 |
|---|---|---|
| committer | Georgios Andreadis <g.andreadis@student.tudelft.nl> | 2017-09-23 10:05:27 +0200 |
| commit | 0bc393e41c5b238c1d95a49ede3dec45b4ed527e (patch) | |
| tree | 0698fe17a8f22c1eb771fdad869714414f48df92 /src/components/projects/ProjectActionButtons.js | |
| parent | 67a771cbb02ec9da3c60704901f3150b46a7262b (diff) | |
Add action buttons to project rows
Diffstat (limited to 'src/components/projects/ProjectActionButtons.js')
| -rw-r--r-- | src/components/projects/ProjectActionButtons.js | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/src/components/projects/ProjectActionButtons.js b/src/components/projects/ProjectActionButtons.js new file mode 100644 index 00000000..085438d8 --- /dev/null +++ b/src/components/projects/ProjectActionButtons.js @@ -0,0 +1,24 @@ +import PropTypes from "prop-types"; +import React from 'react'; + +const ProjectActionButtons = ({onOpen, onViewUsers, onDelete}) => ( + <div className="project-icons"> + <div className="open" title="Open this project" onClick={onOpen}> + <span className="fa fa-play"/> + </div> + <div className="users" title="View and edit collaborators on this project" onClick={onViewUsers}> + <span className="fa fa-users"/> + </div> + <div className="delete" title="Delete this project" onClick={onDelete}> + <span className="fa fa-trash"/> + </div> + </div> +); + +ProjectActionButtons.propTypes = { + onOpen: PropTypes.func.isRequired, + onViewUsers: PropTypes.func.isRequired, + onDelete: PropTypes.func.isRequired, +}; + +export default ProjectActionButtons; |
