Compare commits
4 Commits
main
...
Kartik_Bug
| Author | SHA1 | Date | |
|---|---|---|---|
| 6c9ae5c926 | |||
| c1358f3409 | |||
| 3109f577b0 | |||
| 7919c147ee |
@ -284,18 +284,19 @@ const DirectoryPageHeader = ({
|
|||||||
placeholder={viewType === "notes" ? "Search Notes..." : "Search Contact..."}
|
placeholder={viewType === "notes" ? "Search Notes..." : "Search Contact..."}
|
||||||
value={searchText}
|
value={searchText}
|
||||||
onChange={(e) => setSearchText(e.target.value)}
|
onChange={(e) => setSearchText(e.target.value)}
|
||||||
style={{ width: "200px",height: "30px" }}
|
style={{ width: "200px" }}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
{/* Filter by funnel icon for Notes view */}
|
{/* Filter by funnel icon for Notes view */}
|
||||||
{viewType === "notes" && (
|
{viewType === "notes" && (
|
||||||
<div className="dropdown" style={{ width: "fit-content", minWidth: "400px" }}>
|
<div className="dropdown" style={{ width: "fit-content", minWidth: "400px" }}> {/* Added minWidth here */}
|
||||||
<a
|
<a
|
||||||
className="dropdown-toggle hide-arrow cursor-pointer d-flex align-items-center position-relative"
|
className="dropdown-toggle hide-arrow cursor-pointer d-flex align-items-center position-relative"
|
||||||
data-bs-toggle="dropdown"
|
data-bs-toggle="dropdown"
|
||||||
aria-expanded="false"
|
aria-expanded="false"
|
||||||
>
|
>
|
||||||
<i className={`fa-solid fa-filter ms-1 fs-5 ${selectedCreators.length > 0 || selectedOrgs.length > 0 ? "text-primary" : "text-muted"}`}></i>
|
<i className={`fa-solid fa-filter ms-1 fs-5 ${selectedCreators.length > 0 || selectedOrgs.length > 0 ? "text-primary" : "text-muted"}`}></i>
|
||||||
|
{/* Removed the numerical badge for notes filter */}
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
<div
|
<div
|
||||||
@ -328,6 +329,9 @@ const DirectoryPageHeader = ({
|
|||||||
))}
|
))}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
{/* Divider */}
|
||||||
|
{/* <div style={{ width: "1px", backgroundColor: "#dee2e6", margin: "0 12px" }}></div> */}
|
||||||
|
|
||||||
{/* Organization */}
|
{/* Organization */}
|
||||||
<div className="ps-3" style={{ flex: 1 }}>
|
<div className="ps-3" style={{ flex: 1 }}>
|
||||||
<p className="text-muted mb-1">Organization</p>
|
<p className="text-muted mb-1">Organization</p>
|
||||||
@ -349,11 +353,10 @@ const DirectoryPageHeader = ({
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
{/* Buttons */}
|
{/* Buttons */}
|
||||||
<div className="d-flex justify-content-end gap-2 mt-1">
|
<div className="d-flex justify-content-between mt-3">
|
||||||
<button
|
<button
|
||||||
className="btn btn-xs btn-secondary"
|
className="btn btn-sm btn-outline-danger"
|
||||||
onClick={(e) => {
|
onClick={() => {
|
||||||
// e.stopPropagation();
|
|
||||||
setSelectedCreators([]);
|
setSelectedCreators([]);
|
||||||
setSelectedOrgs([]);
|
setSelectedOrgs([]);
|
||||||
setFilteredOrganizations(allOrganizations);
|
setFilteredOrganizations(allOrganizations);
|
||||||
@ -362,12 +365,7 @@ const DirectoryPageHeader = ({
|
|||||||
>
|
>
|
||||||
Clear
|
Clear
|
||||||
</button>
|
</button>
|
||||||
<button
|
<button className="btn btn-sm btn-primary" onClick={applyCombinedFilter}>
|
||||||
className="btn btn-xs btn-primary"
|
|
||||||
onClick={(e) => {
|
|
||||||
applyCombinedFilter();
|
|
||||||
}}
|
|
||||||
>
|
|
||||||
Apply Filter
|
Apply Filter
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
@ -459,27 +457,13 @@ const DirectoryPageHeader = ({
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className="d-flex justify-content-end gap-2 mt-1">
|
<div className="d-flex justify-content-end gap-2 mt-1">
|
||||||
<button
|
<button className="btn btn-xs btn-secondary" onClick={clearFilter}>Clear</button>
|
||||||
className="btn btn-xs btn-secondary"
|
<button className="btn btn-xs btn-primary" onClick={applyFilter}>Apply Filter</button>
|
||||||
onClick={(e) => {
|
|
||||||
// e.stopPropagation();
|
|
||||||
clearFilter();
|
|
||||||
}}
|
|
||||||
>
|
|
||||||
Clear
|
|
||||||
</button>
|
|
||||||
<button
|
|
||||||
className="btn btn-xs btn-primary"
|
|
||||||
onClick={(e) => {
|
|
||||||
applyFilter();
|
|
||||||
}}
|
|
||||||
>
|
|
||||||
Apply Filter
|
|
||||||
</button>
|
|
||||||
</div>
|
</div>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className="col-12 col-md-6 mb-2 px-5 d-flex justify-content-end align-items-center gap-2">
|
<div className="col-12 col-md-6 mb-2 px-5 d-flex justify-content-end align-items-center gap-2">
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user