Compare commits

..

No commits in common. "59c36d099be9c1e174dc2e68e5b4b079a3a1c40d" and "c58d4d684bc8ad03fa01e1d665aaf5fbee0004e0" have entirely different histories.

View File

@ -257,7 +257,7 @@ const DirectoryPageHeader = ({
<ul className="nav nav-tabs mb-0" role="tablist">
<li className="nav-item" role="presentation">
<button
className={`nav-link ${viewType === "notes" ? "active" : ""} fs-6`}
className={`nav-link ${viewType === "notes" ? "active" : ""}`}
onClick={() => setViewType("notes")}
type="button"
>
@ -266,9 +266,8 @@ const DirectoryPageHeader = ({
</li>
<li className="nav-item" role="presentation">
<button
// Corrected: Apply 'active' if viewType is either 'card' or 'list'
className={`nav-link ${viewType === "card" || viewType === "list" ? "active" : ""} fs-6`}
onClick={() => setViewType("card")} // You might want to default to 'card' when switching to contacts
className={`nav-link ${viewType === "card" ? "active" : ""}`}
onClick={() => setViewType("card")}
type="button"
>
<i className="bx bx-user me-1"></i> Contacts
@ -342,7 +341,7 @@ const DirectoryPageHeader = ({
</div>
{/* Organization */}
<div style={{ maxHeight: "260px", overflowY: "auto", overflowX: "hidden", }}>
<div style={{ maxHeight: "260px", overflowY: "auto",overflowX: "hidden", }}>
<div style={{ position: "sticky", top: 0, background: "#fff", zIndex: 1 }}>
<p className="text-muted mb-2 pt-2">Organization</p>
</div>