Skip to content

Commit 99a3c70

Browse files
committed
allow manual date entry for reimbursement requests
1 parent 701b5b5 commit 99a3c70

1 file changed

Lines changed: 11 additions & 2 deletions

File tree

src/frontend/src/pages/FinancePage/ReimbursementRequestForm/ReimbursementFormView.tsx

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -654,6 +654,9 @@ const ReimbursementRequestFormView: React.FC<ReimbursementRequestFormViewProps>
654654
'& .MuiOutlinedInput-root': {
655655
borderRadius: '20px',
656656
color: '#989898'
657+
},
658+
'& .MuiOutlinedInput-input': {
659+
color: '#ffffff'
657660
}
658661
}}
659662
onClose={() => setDatePickerOpen(false)}
@@ -665,8 +668,14 @@ const ReimbursementRequestFormView: React.FC<ReimbursementRequestFormViewProps>
665668
textField: {
666669
error: !!errors.dateOfExpense,
667670
helperText: errors.dateOfExpense?.message,
668-
onClick: () => setDatePickerOpen(true),
669-
inputProps: { readOnly: true }
671+
InputProps: {
672+
onClick: (e) => {
673+
const target = e.target as HTMLElement;
674+
if (target.closest('button')) {
675+
setDatePickerOpen(true);
676+
}
677+
}
678+
}
670679
}
671680
}}
672681
/>

0 commit comments

Comments
 (0)