This commit is contained in:
Kartik Sharma 2025-07-26 11:42:56 +05:30
parent 48d61520fc
commit a9f764379a

View File

@ -134,14 +134,18 @@ const NotesDirectory = ({
: "hidden", : "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-toggle-slider">
<span className="switch-on"></span> <span className="switch-on"></span>
<span className="switch-off"></span> <span className="switch-off"></span>
</span> </span>
<span className="switch-label">Include Deleted Notes</span> <span className="switch-label">Include Deleted Notes</span>
</label> </label>
{!showEditor && ( {!showEditor && (
<div className="d-flex justify-content-end"> <div className="d-flex justify-content-end">
<button <button
@ -172,11 +176,11 @@ const NotesDirectory = ({
<div className="card m-2 mb-5 position-relative"> <div className="card m-2 mb-5 position-relative">
<span <span
type="button" 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" aria-label="Close"
onClick={() => setShowEditor(false)} 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> </span>
<form onSubmit={handleSubmit(onSubmit)}> <form onSubmit={handleSubmit(onSubmit)}>
<Editor <Editor
@ -224,4 +228,4 @@ const NotesDirectory = ({
); );
}; };
export default NotesDirectory; export default NotesDirectory;