|
|
@@ -18,12 +18,12 @@ import Button from "@mui/material/Button"; |
|
|
|
import { Controller, useFormContext } from "react-hook-form"; |
|
|
|
import { CreateProjectInputs } from "@/app/api/projects/actions"; |
|
|
|
import { ProjectCategory } from "@/app/api/projects"; |
|
|
|
import { Staff } from "@/app/api/staff"; |
|
|
|
import { StaffResult } from "@/app/api/staff"; |
|
|
|
|
|
|
|
interface Props { |
|
|
|
isActive: boolean; |
|
|
|
projectCategories: ProjectCategory[]; |
|
|
|
teamLeads: Staff[]; |
|
|
|
teamLeads: StaffResult[]; |
|
|
|
} |
|
|
|
|
|
|
|
const ProjectClientDetails: React.FC<Props> = ({ |
|
|
@@ -99,7 +99,7 @@ const ProjectClientDetails: React.FC<Props> = ({ |
|
|
|
<Select label={t("Team Lead")} {...field}> |
|
|
|
{teamLeads.map((staff, index) => ( |
|
|
|
<MenuItem key={`${staff.id}-${index}`} value={staff.id}> |
|
|
|
{`${staff.staffId} - ${staff.name} (${staff.team.code})`} |
|
|
|
{`${staff.staffId} - ${staff.name} (${staff.team})`} |
|
|
|
</MenuItem> |
|
|
|
))} |
|
|
|
</Select> |
|
|
|