@@ -111,8 +167,11 @@ export function EditTaskModal({ isOpen, closeModal, dataTimesheet }: IEditTaskMo
aria-label="Start time"
aria-describedby="start-time-error"
type="time"
- value={startTime}
- onChange={(e) => setStartTime(e.target.value)}
+ min="00:00"
+ max="23:59"
+ pattern="[0-9]{2}:[0-9]{2}"
+ value={timeRange.startTime}
+ onChange={(e) => updateTime("startTime", e.target.value)}
className="w-full p-1 border font-normal border-slate-300 dark:border-slate-600 dark:bg-dark--theme-light rounded-md"
required
/>
@@ -128,8 +187,8 @@ export function EditTaskModal({ isOpen, closeModal, dataTimesheet }: IEditTaskMo
aria-label="End time"
aria-describedby="end-time-error"
type="time"
- value={endTime}
- onChange={(e) => setEndTime(e.target.value)}
+ value={timeRange.endTime}
+ onChange={(e) => updateTime('endTime', e.target.value)}
className="w-full p-1 border font-normal border-slate-300 dark:border-slate-600 dark:bg-dark--theme-light rounded-md"
required
/>
@@ -139,7 +198,7 @@ export function EditTaskModal({ isOpen, closeModal, dataTimesheet }: IEditTaskMo
{t("manualTime.DATE")}
@@ -160,13 +219,19 @@ export function EditTaskModal({ isOpen, closeModal, dataTimesheet }: IEditTaskMo
setIsBillable(true)}
+ isActive={timesheetData.isBillable}
+ onClick={() => setTimesheetData((prev) => ({
+ ...prev,
+ isBillable: true,
+ }))}
label={t('pages.timesheet.BILLABLE.YES')}
/>
setIsBillable(false)}
+ isActive={!timesheetData.isBillable}
+ onClick={() => setTimesheetData((prev) => ({
+ ...prev,
+ isBillable: false,
+ }))}
label={t('pages.timesheet.BILLABLE.NO')}
/>
@@ -174,14 +239,17 @@ export function EditTaskModal({ isOpen, closeModal, dataTimesheet }: IEditTaskMo
@@ -224,7 +292,7 @@ export function EditTaskModal({ isOpen, closeModal, dataTimesheet }: IEditTaskMo