Merge pull request 'Blue Highlight Under “Contacts” Tab Disappears When Switching View now its appear.' (#275) from Kartik_Bug#789 into Issues_July_4W
Reviewed-on: #275 Merged
This commit is contained in:
commit
59c36d099b
@ -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" : ""}`}
|
||||
className={`nav-link ${viewType === "notes" ? "active" : ""} fs-6`}
|
||||
onClick={() => setViewType("notes")}
|
||||
type="button"
|
||||
>
|
||||
@ -266,8 +266,9 @@ const DirectoryPageHeader = ({
|
||||
</li>
|
||||
<li className="nav-item" role="presentation">
|
||||
<button
|
||||
className={`nav-link ${viewType === "card" ? "active" : ""}`}
|
||||
onClick={() => setViewType("card")}
|
||||
// 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
|
||||
type="button"
|
||||
>
|
||||
<i className="bx bx-user me-1"></i> Contacts
|
||||
|
Loading…
x
Reference in New Issue
Block a user