Browse Source

update

tags/Baseline_30082024_FRONTEND_UAT
MSI\derek 1 year ago
parent
commit
6f5ce147e8
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      src/components/EditTeam/EditTeam.tsx

+ 2
- 1
src/components/EditTeam/EditTeam.tsx View File

@@ -26,6 +26,7 @@ interface Props {


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


Loading…
Cancel
Save