Skip to content

Commit f80ab29

Browse files
committed
#1578: Moved reciepts section around
1 parent 4e03dda commit f80ab29

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

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

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff 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>

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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,

0 commit comments

Comments
 (0)