Created
July 24, 2018 20:13
-
-
Save coreysnyder/171bd7c0d83fd267b0c2a967d26cde23 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const ProjectListLi = ({index, project, canManageProjects, editClickCB, selectProject}) => ( | |
<li className="col-sm-3" role="menuitem" onClick={(e) => selectProject(project)}> | |
<div id={project.name + '-' + project.id} className={'tile'}> | |
<h3>{project.name}</h3> | |
{canManageProjects && ( | |
<div className="edit-bar text-muted" onClick={(e) => editClickCB(e, project)}> | |
<i className="glyphicon glyphicon-pencil"></i> EDIT | |
</div> | |
)} | |
</div> | |
</li> | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment