|
@@ -82,7 +82,7 @@ const StaffInfo: React.FC<Props> = ({ combos }) => { |
|
|
// reset, |
|
|
// reset, |
|
|
resetField, |
|
|
resetField, |
|
|
setValue, |
|
|
setValue, |
|
|
// getValues, |
|
|
|
|
|
|
|
|
getValues, |
|
|
watch, |
|
|
watch, |
|
|
clearErrors, |
|
|
clearErrors, |
|
|
} = useFormContext<CreateStaffInputs & { salaryEffectiveInfo: SalaryEffectiveInfo[] }>(); |
|
|
} = useFormContext<CreateStaffInputs & { salaryEffectiveInfo: SalaryEffectiveInfo[] }>(); |
|
@@ -319,7 +319,9 @@ const StaffInfo: React.FC<Props> = ({ combos }) => { |
|
|
</MenuItem> |
|
|
</MenuItem> |
|
|
))} |
|
|
))} |
|
|
</Select> |
|
|
</Select> |
|
|
<Button variant="contained" size="small" onClick={toggleTeamModal}> |
|
|
|
|
|
|
|
|
<Button variant="contained" size="small" onClick={toggleTeamModal} |
|
|
|
|
|
disabled={getValues("teamHistory").length == 0} |
|
|
|
|
|
> |
|
|
{t("Team History")} |
|
|
{t("Team History")} |
|
|
</Button> |
|
|
</Button> |
|
|
</Box> |
|
|
</Box> |
|
@@ -354,7 +356,7 @@ const StaffInfo: React.FC<Props> = ({ combos }) => { |
|
|
</Grid> |
|
|
</Grid> |
|
|
<Grid item xs={6}> |
|
|
<Grid item xs={6}> |
|
|
<FormControl fullWidth> |
|
|
<FormControl fullWidth> |
|
|
<InputLabel>{t("Grade")}</InputLabel> |
|
|
|
|
|
|
|
|
<InputLabel required>{t("Grade")}</InputLabel> |
|
|
<Controller |
|
|
<Controller |
|
|
control={control} |
|
|
control={control} |
|
|
name="gradeId" |
|
|
name="gradeId" |
|
@@ -372,7 +374,8 @@ const StaffInfo: React.FC<Props> = ({ combos }) => { |
|
|
</MenuItem> |
|
|
</MenuItem> |
|
|
))} |
|
|
))} |
|
|
</Select> |
|
|
</Select> |
|
|
<Button variant="contained" size="small" onClick={toggleGradeModal}> |
|
|
|
|
|
|
|
|
<Button variant="contained" size="small" onClick={toggleGradeModal} |
|
|
|
|
|
disabled={getValues("gradeHistory").length == 0}> |
|
|
{t("Grade History")} |
|
|
{t("Grade History")} |
|
|
</Button> |
|
|
</Button> |
|
|
</Box> |
|
|
</Box> |
|
@@ -439,7 +442,8 @@ const StaffInfo: React.FC<Props> = ({ combos }) => { |
|
|
</MenuItem> |
|
|
</MenuItem> |
|
|
))} |
|
|
))} |
|
|
</Select> |
|
|
</Select> |
|
|
<Button variant="contained" size="small" onClick={togglePositionModal}> |
|
|
|
|
|
|
|
|
<Button variant="contained" size="small" onClick={togglePositionModal} |
|
|
|
|
|
disabled={getValues("positionHistory").length == 0}> |
|
|
{t("Position History")} |
|
|
{t("Position History")} |
|
|
</Button> |
|
|
</Button> |
|
|
</Box> |
|
|
</Box> |
|
|