From 7e81649841e54c59dd332289904c22a9ed6e863f Mon Sep 17 00:00:00 2001 From: Kartik Sharma Date: Fri, 5 Sep 2025 12:45:28 +0530 Subject: [PATCH 1/2] Toggle Button Functionality for Deleted Notes Not Working Correctly --- src/components/Directory/NotesDirectory.jsx | 78 ++++++++++----------- 1 file changed, 38 insertions(+), 40 deletions(-) diff --git a/src/components/Directory/NotesDirectory.jsx b/src/components/Directory/NotesDirectory.jsx index fab739ee..67c1e239 100644 --- a/src/components/Directory/NotesDirectory.jsx +++ b/src/components/Directory/NotesDirectory.jsx @@ -128,42 +128,40 @@ const NotesDirectory = ({
{" "}
- - + > + Include Deleted Notes + + {!showEditor && (
@@ -225,23 +223,23 @@ const NotesDirectory = ({ )} {!isLoading && notesToDisplay.length > 0 ? notesToDisplay - .slice() - .reverse() - .map((noteItem) => ( - - )) + .slice() + .reverse() + .map((noteItem) => ( + + )) : !isLoading && !showEditor && ( -
{noNotesMessage}
- )} +
{noNotesMessage}
+ )}
); From ef0eff98f83ef1086754c80db90140518727d4c4 Mon Sep 17 00:00:00 2001 From: Kartik Sharma Date: Mon, 8 Sep 2025 14:55:33 +0530 Subject: [PATCH 2/2] Remove unwanted icon --- src/components/Directory/NotesDirectory.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/Directory/NotesDirectory.jsx b/src/components/Directory/NotesDirectory.jsx index 67c1e239..b20f9a5e 100644 --- a/src/components/Directory/NotesDirectory.jsx +++ b/src/components/Directory/NotesDirectory.jsx @@ -139,7 +139,7 @@ const NotesDirectory = ({ type="checkbox" className="switch-input" onChange={handleSwitch} - checked={!IsActive} // ✅ invert binding + checked={!IsActive} // invert binding style={{ transform: "scale(0.8)" }} />