File tree Expand file tree Collapse file tree
src/frontend/src/pages/FinancePage/ReimbursementRequestForm Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -104,7 +104,6 @@ const ReimbursementRequestFormView: React.FC<ReimbursementRequestFormViewProps>
104104
105105 const ReceiptFileInput = ( ) => (
106106 < FormControl >
107- < FormLabel > Receipts</ FormLabel >
108107 < ul >
109108 { receiptFiles . map ( ( receiptFile , index ) => (
110109 < li key = { index } >
@@ -255,15 +254,16 @@ const ReimbursementRequestFormView: React.FC<ReimbursementRequestFormViewProps>
255254 </ Grid >
256255 < Grid item xs = { 6 } >
257256 < FormControl fullWidth >
258- < ReceiptFileInput / >
257+ < FormLabel > Receipts </ FormLabel >
259258 < Button
260259 variant = "contained"
261260 color = "success"
262261 component = "label"
263262 startIcon = { < FileUploadIcon /> }
264263 sx = { {
265264 width : 'fit-content' ,
266- textTransform : 'none'
265+ textTransform : 'none' ,
266+ mt : '9.75px'
267267 } }
268268 >
269269 Upload
@@ -292,6 +292,7 @@ const ReimbursementRequestFormView: React.FC<ReimbursementRequestFormViewProps>
292292 hidden
293293 />
294294 </ Button >
295+ < ReceiptFileInput />
295296 < FormHelperText error > { errors . receiptFiles ?. message } </ FormHelperText >
296297 </ FormControl >
297298 </ Grid >
Original file line number Diff line number Diff line change @@ -89,7 +89,7 @@ const ReimbursementRequestForm: React.FC<ReimbursementRequestFormProps> = ({
8989
9090 const {
9191 fields : receiptFiles ,
92- append : receiptAppend ,
92+ prepend : receiptAppend ,
9393 remove : receiptRemove
9494 } = useFieldArray ( {
9595 control,
You can’t perform that action at this time.
0 commit comments