+ {individualStaffManhoursSpentSelect === "Daily" && (
+ <>
+
+
+
+ >
+ )}
+ {individualStaffManhoursSpentSelect === "Weekly" && (
+ <>
+
+
+
+ >
+ )}
+ {individualStaffManhoursSpentSelect === "Monthly" && (
+ <>
+
+
+
+ >
+ )}
+
+
+
+
+
+
+
+
+
+
+ {/* */}
+ {individualStaffManhoursSpentSelect === "Daily" && (
+
+ selectIndividualStaffMonthlyPeriodFrom(newValue)} defaultValue={totalManHoursByIndividualStaffDailyFromValue} label={'Form'} views={['day','month', 'year']} />
+ selectIndividualStaffMonthlyPeriodTo(newValue)} defaultValue={totalManHoursByIndividualStaffDailyToValue} label={'To'} views={['day','month', 'year']} />
+
+ )}
+ {individualStaffManhoursSpentSelect === "Weekly" && (
+
+ selectWeeklyPeriodIndividualStaff(newValue)}
+ showDaysOutsideCurrentMonth
+ displayWeekNumber
+ slots={{ day: Day }}
+ slotProps={{
+ day: (ownerState) =>
+ ({
+ selectedDay: value,
+ hoveredDay,
+ onPointerEnter: () => setHoveredDay(ownerState.day),
+ onPointerLeave: () => setHoveredDay(null),
+ } as any),
+ }}
+ />
+
+ )}
+ {individualStaffManhoursSpentSelect === "Monthly" && (
+
+ selectIndividualStaffMonthlyPeriodFrom(newValue)} defaultValue={totalManHoursByIndividualStaffMonthlyFromValue} label={'Form'} views={['month', 'year']} />
+ selectIndividualStaffMonthlyPeriodTo(newValue)} defaultValue={totalManHoursByIndividualStaffMonthlyToValue} label={'To'} views={['month', 'year']} />
+
+ )}
+
+
+