From 33d5b93a9cbe47982e6e45ddf2321af188536be6 Mon Sep 17 00:00:00 2001 From: sonali Date: Thu, 3 Oct 2024 17:36:03 +0530 Subject: [PATCH] " new change" --- .../pages/Expense/ExpenseRecords/ExpenseRecords.js | 8 +++++--- src/components/pages/Income/Records/Records.js | 6 +++++- 2 files changed, 10 insertions(+), 4 deletions(-) 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