Feature#802_DeleteExpense : Implemented Delete Expense #290

Merged
pramod.mahajan merged 3 commits from Feature#802_DeleteExpense into Feature_Expense 2025-07-24 10:22:06 +00:00
Showing only changes of commit 4e44b1d967 - Show all commits

View File

@ -181,7 +181,6 @@ const ManageExpense = ({ closeModal, expenseToEdit = null }) => {
useEffect(() => { useEffect(() => {
setExpenseType(ExpenseTypes?.find((type) => type.id === ExpenseTypeId)); setExpenseType(ExpenseTypes?.find((type) => type.id === ExpenseTypeId));
return () => reset(defaultExpense);
}, [ExpenseTypeId]); }, [ExpenseTypeId]);
const handleClose = () => { const handleClose = () => {
@ -536,7 +535,7 @@ const ManageExpense = ({ closeModal, expenseToEdit = null }) => {
className="btn btn-primary btn-sm mt-3" className="btn btn-primary btn-sm mt-3"
disabled={isPending} disabled={isPending}
> >
{isPending ? "Please Wait..." : expenseToEdit ? "Update" : "Submit"} {isPending || createPending ? "Please Wait..." : expenseToEdit ? "Update" : "Submit"}
</button> </button>
<button <button
type="reset" type="reset"