Merge branch 'Kartik_Bug#805' of https://git.marcoaiot.com/admin/marco.pms.web into Kartik_Bug#805

This commit is contained in:
Kartik Sharma 2025-07-26 11:34:32 +05:30
commit 019efafdbb

View File

@ -117,28 +117,23 @@ const NotesDirectory = ({
return ( return (
<div className="text-start mt-10"> <div className="text-start mt-10">
<div className="d-flex align-items-center justify-content-between"> <div className="d-flex align-items-center justify-content-between">
<p className="fw-semibold m-0 ms-3">Notes :</p> <div className="row w-100 align-items-center">
</div> <div className="col col-2">
<div className="d-flex align-items-center justify-content-between mb-5"> <p className="fw-semibold m-0 ms-3">Notes :</p>
<div className="m-0 d-flex align-items-center ms-2 mt-5"> </div>
{(contactProfile?.notes?.length > 0 || contactNotes?.length > 0) && ( <div className="col d-flex justify-content-end gap-2 pe-0">
<label className="switch switch-primary"> {" "}
<input <div className="d-flex align-items-center justify-content-between">
type="checkbox" <label
className="switch-input" className="switch switch-primary"
onChange={handleSwitch} style={{
checked={!IsActive} visibility:
/> contactProfile?.notes?.length > 0 ||
<span className="switch-toggle-slider"> contactNotes?.length > 0
<span className="switch-on"></span> ? "visible"
<span className="switch-off"></span> : "hidden",
</span> }}
<span className="switch-label">Include Deleted Notes</span> >
</label>
)}
{!(contactProfile?.notes?.length > 0 || contactNotes?.length > 0) && (
<div style={{ visibility: "hidden" }}>
<label className="switch switch-primary">
<input type="checkbox" className="switch-input" /> <input type="checkbox" className="switch-input" />
<span className="switch-toggle-slider"> <span className="switch-toggle-slider">
<span className="switch-on"></span> <span className="switch-on"></span>