|
|
@@ -26,6 +26,7 @@ interface Props { |
|
|
|
|
|
|
|
const EditTeam: React.FC<Props> = async ({ staff, teamInfo }) => { |
|
|
|
const { team, staffIds } = teamInfo; |
|
|
|
console.log(team) |
|
|
|
const { t } = useTranslation(); |
|
|
|
const formProps = useForm<CreateTeamInputs>(); |
|
|
|
const searchParams = useSearchParams(); |
|
|
@@ -134,7 +135,7 @@ const EditTeam: React.FC<Props> = async ({ staff, teamInfo }) => { |
|
|
|
</Stack> |
|
|
|
{tabIndex === 0 && <TeamInfo />} |
|
|
|
{tabIndex === 1 && ( |
|
|
|
<Allocation allStaffs={staff} teamLead={team.teamLead.id} /> |
|
|
|
<Allocation allStaffs={staff} teamLead={team.staff?.id} /> |
|
|
|
)} |
|
|
|
<Stack direction="row" justifyContent="flex-end" gap={1}> |
|
|
|
<Button |
|
|
|