This commit is contained in:
Kartik Sharma 2025-07-26 11:42:56 +05:30
parent e0fa59e747
commit 4eacc4f510

View File

@ -134,14 +134,18 @@ const NotesDirectory = ({
: "hidden",
}}
>
<input type="checkbox" className="switch-input" />
<input
type="checkbox"
className="switch-input"
checked={!IsActive} // checked when showing *in*active notes (i.e., when IsActive is false)
onChange={handleSwitch}
/>
<span className="switch-toggle-slider">
<span className="switch-on"></span>
<span className="switch-off"></span>
</span>
<span className="switch-label">Include Deleted Notes</span>
</label>
{!showEditor && (
<div className="d-flex justify-content-end">
<button
@ -172,11 +176,11 @@ const NotesDirectory = ({
<div className="card m-2 mb-5 position-relative">
<span
type="button"
className="position-absolute top-0 end-0 mt-3 bg-secondary rounded-circle"
className="position-absolute top-0 end-0  mt-3 bg-secondary rounded-circle"
aria-label="Close"
onClick={() => setShowEditor(false)}
>
<i className="bx bx-x fs-5 p-1 text-white"></i>
<i className="bx bx-x fs-5  p-1 text-white"></i>
</span>
<form onSubmit={handleSubmit(onSubmit)}>
<Editor
@ -224,4 +228,4 @@ const NotesDirectory = ({
);
};
export default NotesDirectory;
export default NotesDirectory;