diff --git a/src/components/pages/Expense/ExpenseRecords/ExpenseRecords.js b/src/components/pages/Expense/ExpenseRecords/ExpenseRecords.js index fba0b48..88b4845 100644 --- a/src/components/pages/Expense/ExpenseRecords/ExpenseRecords.js +++ b/src/components/pages/Expense/ExpenseRecords/ExpenseRecords.js @@ -45,9 +45,11 @@ function ExpenseRecords() { }, [entry, lastEntry]); const handleBackClick = () => { - navigate("/"); + navigate("/expense-totalsuccessfully"); }; - + const handleBackHomeClick = () => { + navigate("/") + } const handleEditClick = () => { const idToEdit = entryId || (lastEntry ? lastEntry.id : null); @@ -94,7 +96,7 @@ function ExpenseRecords() {
-
Home
+
Home
Edit
diff --git a/src/components/pages/Income/Records/Records.js b/src/components/pages/Income/Records/Records.js index ab40978..4777fea 100644 --- a/src/components/pages/Income/Records/Records.js +++ b/src/components/pages/Income/Records/Records.js @@ -48,6 +48,10 @@ function Records() { navigate("/totalsuccessfully"); }; + const handleBackHomeClick = () => { + navigate("/") + } + const handleEditClick = () => { const idToEdit = entryId || (lastEntry ? lastEntry.id : null); @@ -96,7 +100,7 @@ function Records() {
-
Home
+
Home
Edit