Skip to main content

PeopleItem


Overview

The PeopleItem component is a reusable component that displays a row of member details (Name, Email, Action).

Usage

const Component = () => {
const people = {
_id: "662e760532df26ab0c1bf72a"
firstName: "Jane",
lastName: "Doe",
email: "janedoe@gmail.com"
}

const projectId = "662e760532df26ab0c1bf72b"

return(
<PeopleItem
people = {people},
projectId = {projectId},
/>
)
}

Parameters

  • people: The details of a member in a project.
  • projectId: This project id is used to reference which which project should the member be deleted in.