mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-21 07:10:33 +00:00
fix(paymentmade): fix cancel and clear button.
This commit is contained in:
@@ -26,7 +26,7 @@ export default function PaymentReceiveFormFloatingActions() {
|
|||||||
const { setSubmitPayload, isNewMode } = usePaymentReceiveFormContext();
|
const { setSubmitPayload, isNewMode } = usePaymentReceiveFormContext();
|
||||||
|
|
||||||
// Formik form context.
|
// Formik form context.
|
||||||
const { isSubmitting, submitForm } = useFormikContext();
|
const { isSubmitting, submitForm, resetForm } = useFormikContext();
|
||||||
|
|
||||||
// History context.
|
// History context.
|
||||||
const history = useHistory();
|
const history = useHistory();
|
||||||
@@ -38,7 +38,9 @@ export default function PaymentReceiveFormFloatingActions() {
|
|||||||
};
|
};
|
||||||
|
|
||||||
// Handle clear button click.
|
// Handle clear button click.
|
||||||
const handleClearBtnClick = (event) => {};
|
const handleClearBtnClick = (event) => {
|
||||||
|
resetForm();
|
||||||
|
};
|
||||||
|
|
||||||
// Handle cancel button click.
|
// Handle cancel button click.
|
||||||
const handleCancelBtnClick = (event) => {
|
const handleCancelBtnClick = (event) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user