File tree Expand file tree Collapse file tree 3 files changed +6
-10
lines changed
Expand file tree Collapse file tree 3 files changed +6
-10
lines changed Original file line number Diff line number Diff 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 ) ;
Original file line number Diff line number Diff 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 />
Original file line number Diff line number Diff 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 ) ;
You can’t perform that action at this time.
0 commit comments