File tree Expand file tree Collapse file tree
src/frontend/src/pages/FinancePage/FinanceComponents Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -8,6 +8,8 @@ import LoadingIndicator from '../../../components/LoadingIndicator';
88import NERFormModal from '../../../components/NERFormModal' ;
99import ReactHookTextField from '../../../components/ReactHookTextField' ;
1010import { useToast } from '../../../hooks/toasts.hooks' ;
11+ import { Reimbursement } from 'shared' ;
12+ import { UseMutateAsyncFunction } from 'react-query' ;
1113
1214const schema = yup . object ( ) . shape ( {
1315 amount : yup
@@ -30,7 +32,15 @@ const schema = yup.object().shape({
3032interface RefundModalProps {
3133 showModal : boolean ;
3234 handleClose : ( ) => void ;
33- mutateAsync : ( data : any ) => void ; // if anyone can figure out how to change this without raising type errors, be my guest
35+ mutateAsync : UseMutateAsyncFunction <
36+ Reimbursement ,
37+ Error ,
38+ {
39+ amount : number ;
40+ dateReceived : string ;
41+ } ,
42+ unknown
43+ > ;
3444 isLoading : boolean ;
3545 defaultValues ?: RefundModalInputs ;
3646 title : string ;
You can’t perform that action at this time.
0 commit comments