Skip to content

Commit 20b9bbe

Browse files
committed
Prettier
1 parent ec957b7 commit 20b9bbe

File tree

3 files changed

+6
-10
lines changed

3 files changed

+6
-10
lines changed

apps/frontend/src/components/forms/donationDetailsModal.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ const DonationDetailsModal: React.FC<DonationDetailsModalProps> = ({
3434
try {
3535
const donationData = await ApiClient.getOrderDonation(donationId);
3636
const itemsData = await ApiClient.getDonationItemsByDonationId(
37-
donationId
37+
donationId,
3838
);
3939

4040
setLoadedDonation(donationData);

apps/frontend/src/components/forms/newDonationFormModal.tsx

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ const NewDonationFormModal: React.FC<NewDonationFormModalProps> = ({
4444

4545
const handleChange = (id: number, field: string, value: string) => {
4646
const updatedRows = rows.map((row) =>
47-
row.id === id ? { ...row, [field]: value } : row
47+
row.id === id ? { ...row, [field]: value } : row,
4848
);
4949

5050
setRows(updatedRows);
@@ -99,7 +99,7 @@ const NewDonationFormModal: React.FC<NewDonationFormModalProps> = ({
9999
!row.foodType ||
100100
!row.numItems ||
101101
!row.ozPerItem ||
102-
!row.valuePerItem
102+
!row.valuePerItem,
103103
);
104104

105105
if (hasEmpty) {
@@ -221,11 +221,7 @@ const NewDonationFormModal: React.FC<NewDonationFormModalProps> = ({
221221
<NativeSelect.Field
222222
value={row.foodType}
223223
onChange={(e) =>
224-
handleChange(
225-
row.id,
226-
'foodType',
227-
e.target.value
228-
)
224+
handleChange(row.id, 'foodType', e.target.value)
229225
}
230226
>
231227
<option value="">Select food type...</option>
@@ -270,7 +266,7 @@ const NewDonationFormModal: React.FC<NewDonationFormModalProps> = ({
270266
handleChange(
271267
row.id,
272268
'valuePerItem',
273-
e.target.value
269+
e.target.value,
274270
)
275271
}
276272
/>

apps/frontend/src/theme.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,4 +84,4 @@ const customConfig = defineConfig({
8484
},
8585
});
8686

87-
export const system = createSystem(defaultConfig, customConfig);
87+
export const system = createSystem(defaultConfig, customConfig);

0 commit comments

Comments
 (0)