Compare commits
No commits in common. "b9c486fd4e7a4de3a78ea6ebfbbb12016e0fba46" and "6096e526847d57c7726c221aec9258078ae08272" have entirely different histories.
b9c486fd4e
...
6096e52684
@ -128,40 +128,24 @@ const NotesDirectory = ({
|
|||||||
className="switch switch-primary"
|
className="switch switch-primary"
|
||||||
style={{
|
style={{
|
||||||
visibility:
|
visibility:
|
||||||
contactProfile?.notes?.length > 0 || contactNotes?.length > 0
|
contactProfile?.notes?.length > 0 ||
|
||||||
|
contactNotes?.length > 0
|
||||||
? "visible"
|
? "visible"
|
||||||
: "hidden",
|
: "hidden",
|
||||||
fontSize: "15px", // smaller text
|
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<input
|
<input
|
||||||
type="checkbox"
|
type="checkbox"
|
||||||
className="switch-input"
|
className="switch-input"
|
||||||
onChange={() => handleSwitch(!IsActive)}
|
onChange={() => handleSwitch(!IsActive)}
|
||||||
checked={IsActive}
|
value={IsActive}
|
||||||
style={{
|
|
||||||
transform: "scale(0.8)", // smaller toggle
|
|
||||||
}}
|
|
||||||
/>
|
/>
|
||||||
<span
|
<input type="checkbox" className="switch-input" />
|
||||||
className="switch-toggle-slider"
|
<span className="switch-toggle-slider">
|
||||||
style={{
|
|
||||||
width: "30px", // narrower slider
|
|
||||||
height: "15px", // shorter slider
|
|
||||||
}}
|
|
||||||
>
|
|
||||||
<span className="switch-on"></span>
|
<span className="switch-on"></span>
|
||||||
<span className="switch-off"></span>
|
<span className="switch-off"></span>
|
||||||
</span>
|
</span>
|
||||||
<span
|
<span className="switch-label">Include Deleted Notes</span>
|
||||||
className="switch-label"
|
|
||||||
style={{
|
|
||||||
fontSize: "14px", // smaller label text
|
|
||||||
marginLeft: "-14px"
|
|
||||||
}}
|
|
||||||
>
|
|
||||||
Include Deleted Notes
|
|
||||||
</span>
|
|
||||||
</label>
|
</label>
|
||||||
|
|
||||||
{!showEditor && (
|
{!showEditor && (
|
||||||
@ -224,23 +208,23 @@ const NotesDirectory = ({
|
|||||||
)}
|
)}
|
||||||
{!isLoading && notesToDisplay.length > 0
|
{!isLoading && notesToDisplay.length > 0
|
||||||
? notesToDisplay
|
? notesToDisplay
|
||||||
.slice()
|
.slice()
|
||||||
.reverse()
|
.reverse()
|
||||||
.map((noteItem) => (
|
.map((noteItem) => (
|
||||||
<NoteCardDirectory
|
<NoteCardDirectory
|
||||||
refetchProfile={refetchProfile}
|
refetchProfile={refetchProfile}
|
||||||
refetchNotes={refetch}
|
refetchNotes={refetch}
|
||||||
refetchContact={refetch}
|
refetchContact={refetch}
|
||||||
noteItem={noteItem}
|
noteItem={noteItem}
|
||||||
contactId={contactProfile?.id}
|
contactId={contactProfile?.id}
|
||||||
setProfileContact={setProfileContact}
|
setProfileContact={setProfileContact}
|
||||||
key={noteItem.id}
|
key={noteItem.id}
|
||||||
/>
|
/>
|
||||||
))
|
))
|
||||||
: !isLoading &&
|
: !isLoading &&
|
||||||
!showEditor && (
|
!showEditor && (
|
||||||
<div className="text-center mt-5">{noNotesMessage}</div>
|
<div className="text-center mt-5">{noNotesMessage}</div>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user