Skip to content

Commit 0ac1883

Browse files
committed
#2082 linting and prettier
1 parent 6e1c809 commit 0ac1883

3 files changed

Lines changed: 6 additions & 7 deletions

File tree

src/frontend/src/hooks/finance.hooks.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ export const useDownloadPDFOfImages = () => {
342342
return downloadGoogleImage(fileId);
343343
});
344344

345-
console.log(formData.startDate)
345+
console.log(formData.startDate);
346346

347347
const blobs = await Promise.all(promises);
348348
const pdfName = `${formData.startDate.toLocaleDateString()}-${formData.endDate.toLocaleDateString()}.pdf`;

src/frontend/src/pages/FinancePage/FinanceComponents/GenerateReceiptsModal.tsx

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { FormControl, FormLabel, MenuItem, Select, TextField, setRef } from '@mui/material';
1+
import { FormControl, FormLabel, MenuItem, Select, TextField } from '@mui/material';
22
import NERFormModal from '../../../components/NERFormModal';
33
import { Controller, useForm } from 'react-hook-form';
44
import { DatePicker } from '@mui/x-date-pickers';
@@ -72,8 +72,6 @@ const GenerateReceiptsModal = ({
7272
startDate: data.startDate,
7373
endDate: data.endDate,
7474
refundSource: data.refundSource
75-
76-
7775
});
7876
} catch (error: unknown) {
7977
if (error instanceof Error) {
@@ -87,9 +85,9 @@ const GenerateReceiptsModal = ({
8785
handleSubmit,
8886
control,
8987
reset,
90-
formState: { errors, isValid },
88+
formState: { errors, isValid }
9189
} = useForm({
92-
resolver: yupResolver(schema),
90+
resolver: yupResolver(schema)
9391
});
9492

9593
return (

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,8 @@ const FinancePage = () => {
163163
allReimbursementRequests={allReimbursementRequests}
164164
refundSource="BOTH"
165165
startDate={new Date()}
166-
endDate={new Date()}/>
166+
endDate={new Date()}
167+
/>
167168
<Grid container>
168169
<Grid item xs={12} sm={12} md={4}>
169170
<Refunds

0 commit comments

Comments
 (0)