mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-17 21:30:31 +00:00
feat: refactor FastField fields to binded Formik fields
This commit is contained in:
@@ -121,11 +121,12 @@ export function useDeletePaymentMade(props) {
|
||||
*/
|
||||
export function usePaymentMadeEditPage(
|
||||
id: number,
|
||||
props: UseQueryOptions<any, Error>,
|
||||
props?: UseQueryOptions<any, Error>,
|
||||
) {
|
||||
const apiRequest = useApiRequest();
|
||||
return useQuery([t.PAYMENT_MADE_EDIT_PAGE, id], () =>
|
||||
apiRequest.get(`bill-payments/${id}/edit-page`).then((res) => res.data),
|
||||
props
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
@@ -175,6 +175,7 @@ export function usePaymentReceiveEditPage(id, props) {
|
||||
return useQuery(
|
||||
[t.PAYMENT_RECEIVE_EDIT_PAGE, id],
|
||||
() => apiRequest.get(`payments-received/${id}/edit-page`).then(res => res.data),
|
||||
props
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user