Skip to content

Instantly share code, notes, and snippets.

@coreysnyder
Created July 24, 2018 20:13
Show Gist options
  • Save coreysnyder/171bd7c0d83fd267b0c2a967d26cde23 to your computer and use it in GitHub Desktop.
Save coreysnyder/171bd7c0d83fd267b0c2a967d26cde23 to your computer and use it in GitHub Desktop.
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