feat: refactor FastField fields to binded Formik fields

This commit is contained in:
Ahmed Bouhuolia
2025-11-03 00:27:32 +02:00
parent cca116f6bb
commit 46871c8113
7 changed files with 349 additions and 460 deletions

View File

@@ -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
);
}

View File

@@ -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
);
}